mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-10 09:10:37 +00:00
20 lines
460 B
C++
20 lines
460 B
C++
#pragma once
|
|
|
|
#include "Attribute.h"
|
|
#include "minecraft/world/entity/ai/attributes/Attribute.h"
|
|
|
|
class BaseAttribute : public Attribute {
|
|
private:
|
|
eATTRIBUTE_ID id;
|
|
double defaultValue;
|
|
bool syncable;
|
|
|
|
protected:
|
|
BaseAttribute(eATTRIBUTE_ID id, double defaultValue);
|
|
|
|
public:
|
|
virtual eATTRIBUTE_ID getId();
|
|
virtual double getDefaultValue();
|
|
virtual bool isClientSyncable();
|
|
virtual BaseAttribute* setSyncable(bool syncable);
|
|
}; |