Class IntDataComponent
java.lang.Object
org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponent<Integer,IntComponentType>
org.geysermc.mcprotocollib.protocol.data.game.item.component.type.IntDataComponent
-
Field Summary
Fields inherited from class org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponent
type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue()May be null depending on typevoidwrite(ItemCodecHelper helper, io.netty.buffer.ByteBuf out) Overridden for primitive classes.Methods inherited from class org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponent
equals, getType, hashCode, toString
-
Constructor Details
-
IntDataComponent
-
-
Method Details
-
getValue
Description copied from class:DataComponentMay be null depending on type- Specified by:
getValuein classDataComponent<Integer,IntComponentType>
-
write
Description copied from class:DataComponentOverridden for primitive classes. This write method still checks for these primitives in the event they are manually created usingObjectDataComponent.- Overrides:
writein classDataComponent<Integer,IntComponentType>
-