Class AttributeContainer
java.lang.Object
zombie.entity.Component
zombie.entity.components.attributes.AttributeContainer
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(AttributeType attributeType) void
clear()
boolean
contains
(AttributeType attributeType) copy()
static void
Copy
(AttributeContainer attributeContainer1, AttributeContainer attributeContainer0) void
DoTooltip
(ObjectTooltip var1, ObjectTooltip.Layout layout) void
forEach
(BiConsumer<AttributeType, AttributeInstance> biConsumer) final boolean
get
(AttributeType.Bool bool) final boolean
get
(AttributeType.Bool bool, boolean boolean0) final byte
get
(AttributeType.Byte byte0) final byte
get
(AttributeType.Byte byte0, byte byte1) final double
get
(AttributeType.Double double0) final double
get
(AttributeType.Double double0, double double1) get
(AttributeType.Enum<E> _enum) get
(AttributeType.Enum<E> enum0, E enum1) get
(AttributeType.EnumSet<E> enumSet) final <E extends Enum<E> & IOEnum>
EnumStringObj<E> get
(AttributeType.EnumStringSet<E> enumStringSet) final float
get
(AttributeType.Float float0) final float
get
(AttributeType.Float float0, float float1) final int
get
(AttributeType.Int int0) final int
get
(AttributeType.Int int0, int int1) final long
get
(AttributeType.Long long0) final long
get
(AttributeType.Long long0, long long1) final short
get
(AttributeType.Short short0) final short
get
(AttributeType.Short short0, short short1) final String
get
(AttributeType.String string) final String
get
(AttributeType.String string0, String string1) getAttribute
(int int0) getAttribute
(AttributeType attributeType) final float
getFloatValue
(AttributeType.Numeric numeric) final float
getFloatValue
(AttributeType.Numeric numeric, float float0) getKey
(int int0) protected AttributeInstance
<?, ?> getOrAdd
(AttributeType attributeType) boolean
isIdenticalTo
(AttributeContainer attributeContainer0) void
load
(ByteBuffer byteBuffer, int var2) protected void
loadSyncData
(ByteBuffer byteBuffer) static void
Merge
(AttributeContainer attributeContainer0, AttributeContainer attributeContainer1) protected boolean
onReceivePacket
(ByteBuffer var1, EntityPacketType entityPacketType, UdpConnection var3) final void
put
(AttributeType.Bool bool, boolean boolean0) final void
put
(AttributeType.Byte byte0, byte byte1) final void
put
(AttributeType.Double double0, double double1) put
(AttributeType.Enum<E> enum0, E enum1) put
(AttributeType.EnumSet<E> enumSet0, EnumSet<E> enumSet1) put
(AttributeType.EnumStringSet<E> enumStringSet, EnumStringObj<E> enumStringObj) final void
put
(AttributeType.Float float0, float float1) final void
put
(AttributeType.Int int0, int int1) final void
put
(AttributeType.Long long0, long long1) final void
put
(AttributeType.Short short0, short short1) final void
put
(AttributeType.String string0, String string1) final void
putFloatValue
(AttributeType.Numeric numeric, float float0) final boolean
putFromScript
(AttributeType attributeType, String string) protected void
readFromScript
(ComponentScript componentScript) void
remove
(AttributeType attributeType) protected void
reset()
void
save
(ByteBuffer byteBuffer) protected void
saveSyncData
(ByteBuffer byteBuffer) final void
set
(AttributeType.Bool bool, boolean boolean0) final void
set
(AttributeType.Byte byte0, byte byte1) final void
set
(AttributeType.Double double0, double double1) set
(AttributeType.Enum<E> enum0, E enum1) set
(AttributeType.EnumSet<E> enumSet0, EnumSet<E> enumSet1) set
(AttributeType.EnumStringSet<E> enumStringSet, EnumStringObj<E> enumStringObj) final void
set
(AttributeType.Float float0, float float1) final void
set
(AttributeType.Int int0, int int1) final void
set
(AttributeType.Long long0, long long1) final void
set
(AttributeType.Short short0, short short1) final void
set
(AttributeType.String string0, String string1) final void
setFloatValue
(AttributeType.Numeric numeric, float float0) int
size()
toString()
Methods inherited from class zombie.entity.Component
DoTooltip, getComponent, getComponentType, getGameEntity, getOwner, getRenderLastPriority, getUsingPlayer, isAddedToEngine, isQualifiesForMetaStorage, isRenderLast, isRunningInMeta, isUsingPlayer, isValid, isValidOwnerType, onAddedToOwner, onComponentEvent, onConnectComponents, onEntityEvent, onFirstCreation, onRemovedFromOwner, renderlast, sendClientPacket, sendComponentEvent, sendComponentEvent, sendServerPacket, sendServerPacketTo, setOwner
-
Field Details
-
STORAGE_SIZE
public static final short STORAGE_SIZE- See Also:
-
-
Method Details
-
readFromScript
- Overrides:
readFromScript
in classComponent
-
toString
-
size
public int size() -
forEach
-
contains
-
remove
-
getOrAdd
-
add
-
putFromScript
-
put
-
set
-
get
-
get
-
put
public final <E extends Enum<E> & IOEnum> void put(AttributeType.EnumSet<E> enumSet0, EnumSet<E> enumSet1) -
set
public final <E extends Enum<E> & IOEnum> void set(AttributeType.EnumSet<E> enumSet0, EnumSet<E> enumSet1) -
get
-
put
public final <E extends Enum<E> & IOEnum> void put(AttributeType.EnumStringSet<E> enumStringSet, EnumStringObj<E> enumStringObj) -
set
public final <E extends Enum<E> & IOEnum> void set(AttributeType.EnumStringSet<E> enumStringSet, EnumStringObj<E> enumStringObj) -
get
public final <E extends Enum<E> & IOEnum> EnumStringObj<E> get(AttributeType.EnumStringSet<E> enumStringSet) -
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
-
reset
-
clear
public void clear() -
Copy
public static void Copy(AttributeContainer attributeContainer1, AttributeContainer attributeContainer0) -
Merge
public static void Merge(AttributeContainer attributeContainer0, AttributeContainer attributeContainer1) -
copy
-
isIdenticalTo
-
onReceivePacket
protected boolean onReceivePacket(ByteBuffer var1, EntityPacketType entityPacketType, UdpConnection var3) throws IOException - Specified by:
onReceivePacket
in classComponent
- Throws:
IOException
-
saveSyncData
- Specified by:
saveSyncData
in classComponent
- Throws:
IOException
-
loadSyncData
- Specified by:
loadSyncData
in classComponent
- Throws:
IOException
-
save
-
load
- Overrides:
load
in classComponent
- Throws:
IOException
-
DoTooltip
-