Class AttributeContainer
java.lang.Object
zombie.entity.Component
zombie.entity.components.attributes.AttributeContainer
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(AttributeType type) voidclear()booleancontains(AttributeType type) copy()static voidCopy(AttributeContainer source, AttributeContainer target) voidDoTooltip(ObjectTooltip tooltipUI, ObjectTooltip.Layout layout) voidforEach(BiConsumer<AttributeType, AttributeInstance> action) final booleanget(AttributeType.Bool type) final booleanget(AttributeType.Bool type, boolean defaultTo) final byteget(AttributeType.Byte type) final byteget(AttributeType.Byte type, byte defaultTo) final doubleget(AttributeType.Double type) final doubleget(AttributeType.Double type, double defaultTo) get(AttributeType.Enum<E> type) get(AttributeType.Enum<E> type, E defaultTo) get(AttributeType.EnumSet<E> type) final <E extends Enum<E> & IOEnum>
EnumStringObj<E> get(AttributeType.EnumStringSet<E> type) final floatget(AttributeType.Float type) final floatget(AttributeType.Float type, float defaultTo) final intget(AttributeType.Int type) final intget(AttributeType.Int type, int defaultTo) final longget(AttributeType.Long type) final longget(AttributeType.Long type, long defaultTo) final shortget(AttributeType.Short type) final shortget(AttributeType.Short type, short defaultTo) final Stringget(AttributeType.String type) final Stringget(AttributeType.String type, String defaultTo) getAttribute(int index) getAttribute(AttributeType type) final floatfinal floatgetFloatValue(AttributeType.Numeric type, float defaultTo) getKey(int index) booleanisIdenticalTo(AttributeContainer other) voidload(ByteBuffer input, int WorldVersion) static voidMerge(AttributeContainer source, AttributeContainer target) final voidput(AttributeType.Bool type, boolean value) final voidput(AttributeType.Byte type, byte value) final voidput(AttributeType.Double type, double value) put(AttributeType.Enum<E> type, E value) put(AttributeType.EnumSet<E> type, EnumSet<E> value) put(AttributeType.EnumStringSet<E> type, EnumStringObj<E> value) final voidput(AttributeType.Float type, float value) final voidput(AttributeType.Int type, int value) final voidput(AttributeType.Long type, long value) final voidput(AttributeType.Short type, short value) final voidput(AttributeType.String type, String value) final voidputFloatValue(AttributeType.Numeric type, float value) final booleanputFromScript(AttributeType type, String scriptVal) voidremove(AttributeType type) voidsave(ByteBuffer output) final voidset(AttributeType.Bool type, boolean value) final voidset(AttributeType.Byte type, byte value) final voidset(AttributeType.Double type, double value) set(AttributeType.Enum<E> type, E value) set(AttributeType.EnumSet<E> type, EnumSet<E> value) set(AttributeType.EnumStringSet<E> type, EnumStringObj<E> value) final voidset(AttributeType.Float type, float value) final voidset(AttributeType.Int type, int value) final voidset(AttributeType.Long type, long value) final voidset(AttributeType.Short type, short value) final voidset(AttributeType.String type, String value) final voidsetFloatValue(AttributeType.Numeric type, float value) intsize()toString()Methods inherited from class Component
DoTooltip, dumpContentsInSquare, getComponent, getComponentType, getGameEntity, getOwner, getRenderLastPriority, getUsingPlayer, isAddedToEngine, isNoContainerOrEmpty, isQualifiesForMetaStorage, isRenderLast, isRunningInMeta, isUsingPlayer, isValid, isValidOwnerType, sendServerPacketTo
-
Field Details
-
STORAGE_SIZE
public static final short STORAGE_SIZE- See Also:
-
-
Method Details
-
toString
-
size
public int size() -
forEach
-
contains
-
remove
-
add
-
putFromScript
-
put
-
set
-
get
-
get
-
put
-
set
-
get
-
put
public final <E extends Enum<E> & IOEnum> void put(AttributeType.EnumStringSet<E> type, EnumStringObj<E> value) -
set
public final <E extends Enum<E> & IOEnum> void set(AttributeType.EnumStringSet<E> type, EnumStringObj<E> value) -
get
-
put
-
set
-
get
-
get
-
put
-
set
-
get
-
get
-
putFloatValue
-
setFloatValue
-
getFloatValue
-
getFloatValue
-
put
-
set
-
get
-
get
-
put
-
set
-
get
-
get
-
put
-
set
-
get
-
get
-
put
-
set
-
get
-
get
-
put
-
set
-
get
-
get
-
put
-
set
-
get
-
get
-
getKey
-
getAttribute
-
getAttribute
-
clear
public void clear() -
Copy
-
Merge
-
copy
-
isIdenticalTo
-
save
-
load
- Throws:
IOException
-
DoTooltip
-