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, 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, key, 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
ConstructorsModifierConstructorDescriptionprotectedBooleanComponentType(String key, BooleanComponentType.BooleanReader reader, BooleanComponentType.BooleanWriter writer, BooleanComponentType.BooleanDataComponentFactory metadataFactory) -
Method Summary
Modifier and TypeMethodDescriptionreadDataComponent(io.netty.buffer.ByteBuf input) toString()voidwriteDataComponentPrimitive(io.netty.buffer.ByteBuf output, boolean 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
-
BooleanComponentType
protected BooleanComponentType(String key, BooleanComponentType.BooleanReader reader, BooleanComponentType.BooleanWriter writer, BooleanComponentType.BooleanDataComponentFactory metadataFactory)
-
-
Method Details
-
readDataComponent
- Overrides:
readDataComponentin classDataComponentType<Boolean>
-
readNullDataComponent
- Overrides:
readNullDataComponentin classDataComponentType<Boolean>
-
writeDataComponentPrimitive
public void writeDataComponentPrimitive(io.netty.buffer.ByteBuf output, boolean value) -
toString
- Overrides:
toStringin classDataComponentType<Boolean>
-