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, AXOLOTL_VARIANT, BANNER_PATTERNS, BASE_COLOR, BEES, BLOCK_ENTITY_DATA, BLOCK_STATE, BLOCKS_ATTACKS, BREAK_SOUND, BUCKET_ENTITY_DATA, BUNDLE_CONTENTS, CAN_BREAK, CAN_PLACE_ON, CAT_COLLAR, CAT_VARIANT, CHARGED_PROJECTILES, CONSUMABLE, CONTAINER, CONTAINER_LOOT, COW_VARIANT, 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, FOX_VARIANT, FROG_VARIANT, GLIDER, HORSE_VARIANT, id, INSTRUMENT, INTANGIBLE_PROJECTILE, ITEM_MODEL, ITEM_NAME, JUKEBOX_PLAYABLE, key, LLAMA_VARIANT, LOCK, LODESTONE_TRACKER, LORE, MAP_COLOR, MAP_DECORATIONS, MAP_ID, MAP_POST_PROCESSING, MAX_DAMAGE, MAX_STACK_SIZE, MOOSHROOM_VARIANT, NOTE_BLOCK_SOUND, OMINOUS_BOTTLE_AMPLIFIER, PAINTING_VARIANT, PARROT_VARIANT, PIG_VARIANT, POT_DECORATIONS, POTION_CONTENTS, POTION_DURATION_SCALE, PROFILE, PROVIDES_BANNER_PATTERNS, PROVIDES_TRIM_MATERIAL, RABBIT_VARIANT, RARITY, reader, RECIPES, REPAIR_COST, REPAIRABLE, SALMON_SIZE, SHEEP_COLOR, SHULKER_COLOR, STORED_ENCHANTMENTS, SUSPICIOUS_STEW_EFFECTS, TOOL, TOOLTIP_DISPLAY, TOOLTIP_STYLE, TRIM, TROPICAL_FISH_BASE_COLOR, TROPICAL_FISH_PATTERN, TROPICAL_FISH_PATTERN_COLOR, UNBREAKABLE, USE_COOLDOWN, USE_REMAINDER, VILLAGER_VARIANT, WEAPON, WOLF_COLLAR, WOLF_VARIANT, WRITABLE_BOOK_CONTENT, writer, WRITTEN_BOOK_CONTENT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedIntComponentType(String key, IntComponentType.IntReader reader, IntComponentType.IntWriter writer, IntComponentType.IntDataComponentFactory metadataFactory) -
Method Summary
Modifier and TypeMethodDescriptionreadDataComponent(io.netty.buffer.ByteBuf input) toString()voidwriteDataComponentPrimitive(io.netty.buffer.ByteBuf output, int value) Methods inherited from class org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType
from, getDataComponentFactory, getId, getKey, getReader, getWriter, read, size, writeDataComponent
-
Field Details
-
primitiveReader
-
primitiveWriter
-
primitiveFactory
-
-
Constructor Details
-
IntComponentType
protected IntComponentType(String key, IntComponentType.IntReader reader, IntComponentType.IntWriter writer, IntComponentType.IntDataComponentFactory metadataFactory)
-
-
Method Details
-
readDataComponent
- Overrides:
readDataComponentin classDataComponentType<Integer>
-
readNullDataComponent
- Overrides:
readNullDataComponentin classDataComponentType<Integer>
-
writeDataComponentPrimitive
public void writeDataComponentPrimitive(io.netty.buffer.ByteBuf output, int value) -
toString
- Overrides:
toStringin classDataComponentType<Integer>
-