Class BooleanComponentType
java.lang.Object
org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<Boolean>
org.geysermc.mcprotocollib.protocol.data.game.item.component.BooleanComponentType
-
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 BooleanComponentType.BooleanDataComponentFactoryprotected final BooleanComponentType.BooleanReaderprotected final BooleanComponentType.BooleanWriterFields 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, CONTAINER, CONTAINER_LOOT, CREATIVE_SLOT_LOCK, CUSTOM_DATA, CUSTOM_MODEL_DATA, CUSTOM_NAME, DAMAGE, dataComponentFactory, DEBUG_STICK_STATE, DYED_COLOR, ENCHANTMENT_GLINT_OVERRIDE, ENCHANTMENTS, ENTITY_DATA, FIRE_RESISTANT, FIREWORK_EXPLOSION, FIREWORKS, FOOD, HIDE_ADDITIONAL_TOOLTIP, HIDE_TOOLTIP, id, INSTRUMENT, INTANGIBLE_PROJECTILE, ITEM_NAME, 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, STORED_ENCHANTMENTS, SUSPICIOUS_STEW_EFFECTS, TOOL, TRIM, UNBREAKABLE, WRITABLE_BOOK_CONTENT, writer, WRITTEN_BOOK_CONTENT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBooleanComponentType(BooleanComponentType.BooleanReader reader, BooleanComponentType.BooleanWriter writer, BooleanComponentType.BooleanDataComponentFactory metadataFactory) -
Method Summary
Modifier and TypeMethodDescriptionreadDataComponent(ItemCodecHelper helper, io.netty.buffer.ByteBuf input) voidwriteDataComponentPrimitive(io.netty.buffer.ByteBuf output, boolean value) Methods inherited from class org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType
from, getDataComponentFactory, getId, getReader, getWriter, read, readNullDataComponent, size, writeDataComponent
-
Field Details
-
primitiveReader
-
primitiveWriter
-
primitiveFactory
-
-
Constructor Details
-
BooleanComponentType
protected BooleanComponentType(BooleanComponentType.BooleanReader reader, BooleanComponentType.BooleanWriter writer, BooleanComponentType.BooleanDataComponentFactory metadataFactory)
-
-
Method Details
-
readDataComponent
public DataComponent<Boolean,BooleanComponentType> readDataComponent(ItemCodecHelper helper, io.netty.buffer.ByteBuf input) - Overrides:
readDataComponentin classDataComponentType<Boolean>
-
writeDataComponentPrimitive
public void writeDataComponentPrimitive(io.netty.buffer.ByteBuf output, boolean value)
-