Class IntComponentType
java.lang.Object
org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<Integer>
org.geysermc.mcprotocollib.protocol.data.game.item.component.IntComponentType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interfaceNested classes/interfaces inherited from class org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType
DataComponentType.BasicReader<V>, DataComponentType.BasicWriter<V>, DataComponentType.DataComponentFactory<V>, DataComponentType.Reader<V>, DataComponentType.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final IntComponentType.IntDataComponentFactoryprotected final IntComponentType.IntReaderprotected final IntComponentType.IntWriterFields inherited from class org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType
ATTRIBUTE_MODIFIERS, BANNER_PATTERNS, BASE_COLOR, BEES, BLOCK_ENTITY_DATA, BLOCK_STATE, BUCKET_ENTITY_DATA, BUNDLE_CONTENTS, CAN_BREAK, CAN_PLACE_ON, CHARGED_PROJECTILES, CONSUMABLE, CONTAINER, CONTAINER_LOOT, CREATIVE_SLOT_LOCK, CUSTOM_DATA, CUSTOM_MODEL_DATA, CUSTOM_NAME, DAMAGE, DAMAGE_RESISTANT, dataComponentFactory, DEATH_PROTECTION, DEBUG_STICK_STATE, DYED_COLOR, ENCHANTABLE, ENCHANTMENT_GLINT_OVERRIDE, ENCHANTMENTS, ENTITY_DATA, EQUIPPABLE, FIREWORK_EXPLOSION, FIREWORKS, FOOD, GLIDER, HIDE_ADDITIONAL_TOOLTIP, HIDE_TOOLTIP, id, INSTRUMENT, INTANGIBLE_PROJECTILE, ITEM_MODEL, ITEM_NAME, JUKEBOX_PLAYABLE, LOCK, LODESTONE_TRACKER, LORE, MAP_COLOR, MAP_DECORATIONS, MAP_ID, MAP_POST_PROCESSING, MAX_DAMAGE, MAX_STACK_SIZE, NOTE_BLOCK_SOUND, OMINOUS_BOTTLE_AMPLIFIER, POT_DECORATIONS, POTION_CONTENTS, PROFILE, RARITY, reader, RECIPES, REPAIR_COST, REPAIRABLE, STORED_ENCHANTMENTS, SUSPICIOUS_STEW_EFFECTS, TOOL, TOOLTIP_STYLE, TRIM, UNBREAKABLE, USE_COOLDOWN, USE_REMAINDER, WRITABLE_BOOK_CONTENT, writer, WRITTEN_BOOK_CONTENT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedIntComponentType(IntComponentType.IntReader reader, IntComponentType.IntWriter writer, IntComponentType.IntDataComponentFactory metadataFactory) -
Method Summary
Modifier and TypeMethodDescriptionreadDataComponent(ItemCodecHelper helper, io.netty.buffer.ByteBuf input) voidwriteDataComponentPrimitive(ItemCodecHelper helper, io.netty.buffer.ByteBuf output, int value) Methods inherited from class org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType
from, getDataComponentFactory, getId, getReader, getWriter, read, size, writeDataComponent
-
Field Details
-
primitiveReader
-
primitiveWriter
-
primitiveFactory
-
-
Constructor Details
-
IntComponentType
protected IntComponentType(IntComponentType.IntReader reader, IntComponentType.IntWriter writer, IntComponentType.IntDataComponentFactory metadataFactory)
-
-
Method Details
-
readDataComponent
public DataComponent<Integer,IntComponentType> readDataComponent(ItemCodecHelper helper, io.netty.buffer.ByteBuf input) - Overrides:
readDataComponentin classDataComponentType<Integer>
-
readNullDataComponent
- Overrides:
readNullDataComponentin classDataComponentType<Integer>
-
writeDataComponentPrimitive
public void writeDataComponentPrimitive(ItemCodecHelper helper, io.netty.buffer.ByteBuf output, int value)
-