Class DataComponentType<T>
java.lang.Object
org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<T>
- Direct Known Subclasses:
BooleanComponentType,IntComponentType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfacestatic interfacestatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DataComponentType<ItemAttributeModifiers>static final DataComponentType<List<BannerPatternLayer>>static final IntComponentTypestatic final DataComponentType<List<BeehiveOccupant>>static final DataComponentType<org.cloudburstmc.nbt.NbtMap>static final DataComponentType<BlockStateProperties>static final DataComponentType<org.cloudburstmc.nbt.NbtMap>static final DataComponentType<List<ItemStack>>static final DataComponentType<AdventureModePredicate>static final DataComponentType<AdventureModePredicate>static final DataComponentType<List<ItemStack>>static final DataComponentType<List<ItemStack>>static final DataComponentType<org.cloudburstmc.nbt.NbtMap>static final DataComponentType<Unit>static final DataComponentType<org.cloudburstmc.nbt.NbtMap>static final IntComponentTypestatic final DataComponentType<net.kyori.adventure.text.Component>static final IntComponentTypeprotected final DataComponentType.DataComponentFactory<T>static final DataComponentType<org.cloudburstmc.nbt.NbtMap>static final DataComponentType<DyedItemColor>static final BooleanComponentTypestatic final DataComponentType<ItemEnchantments>static final DataComponentType<org.cloudburstmc.nbt.NbtMap>static final DataComponentType<Unit>static final DataComponentType<Fireworks.FireworkExplosion>static final DataComponentType<Fireworks>static final DataComponentType<FoodProperties>static final DataComponentType<Unit>static final DataComponentType<Unit>protected final intstatic final DataComponentType<Holder<Instrument>>static final DataComponentType<org.cloudburstmc.nbt.NbtMap>static final DataComponentType<net.kyori.adventure.text.Component>static final DataComponentType<JukeboxPlayable>static final DataComponentType<String>static final DataComponentType<LodestoneTracker>static final DataComponentType<List<net.kyori.adventure.text.Component>>static final IntComponentTypestatic final DataComponentType<org.cloudburstmc.nbt.NbtMap>static final IntComponentTypestatic final IntComponentTypestatic final IntComponentTypestatic final IntComponentTypestatic final DataComponentType<net.kyori.adventure.key.Key>static final IntComponentTypestatic final DataComponentType<List<Integer>>static final DataComponentType<PotionContents>static final DataComponentType<GameProfile>static final IntComponentTypeprotected final DataComponentType.Reader<T>static final DataComponentType<org.cloudburstmc.nbt.NbtList<?>>static final IntComponentTypestatic final DataComponentType<ItemEnchantments>static final DataComponentType<List<SuspiciousStewEffect>>static final DataComponentType<ToolData>static final DataComponentType<ArmorTrim>static final BooleanComponentTypestatic final DataComponentType<WritableBookContent>protected final DataComponentType.Writer<T>static final DataComponentType<WrittenBookContent> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDataComponentType(DataComponentType.Reader<T> reader, DataComponentType.Writer<T> writer, DataComponentType.DataComponentFactory<T> dataComponentFactory) -
Method Summary
Modifier and TypeMethodDescriptionstatic DataComponentType<?>from(int id) intgetId()static DataComponentType<?>read(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) DataComponent<T,? extends DataComponentType<T>> readDataComponent(ItemCodecHelper helper, io.netty.buffer.ByteBuf input) DataComponent<T,? extends DataComponentType<T>> static intsize()voidwriteDataComponent(ItemCodecHelper helper, io.netty.buffer.ByteBuf output, T value)
-
Field Details
-
CUSTOM_DATA
-
MAX_STACK_SIZE
-
MAX_DAMAGE
-
DAMAGE
-
UNBREAKABLE
-
CUSTOM_NAME
-
ITEM_NAME
-
LORE
-
RARITY
-
ENCHANTMENTS
-
CAN_PLACE_ON
-
CAN_BREAK
-
ATTRIBUTE_MODIFIERS
-
CUSTOM_MODEL_DATA
-
HIDE_ADDITIONAL_TOOLTIP
-
HIDE_TOOLTIP
-
REPAIR_COST
-
CREATIVE_SLOT_LOCK
-
ENCHANTMENT_GLINT_OVERRIDE
-
INTANGIBLE_PROJECTILE
-
FOOD
-
FIRE_RESISTANT
-
TOOL
-
STORED_ENCHANTMENTS
-
DYED_COLOR
-
MAP_COLOR
-
MAP_ID
-
MAP_DECORATIONS
-
MAP_POST_PROCESSING
-
CHARGED_PROJECTILES
-
BUNDLE_CONTENTS
-
POTION_CONTENTS
-
SUSPICIOUS_STEW_EFFECTS
-
WRITABLE_BOOK_CONTENT
-
WRITTEN_BOOK_CONTENT
-
TRIM
-
DEBUG_STICK_STATE
-
ENTITY_DATA
-
BUCKET_ENTITY_DATA
-
BLOCK_ENTITY_DATA
-
INSTRUMENT
-
OMINOUS_BOTTLE_AMPLIFIER
-
JUKEBOX_PLAYABLE
-
RECIPES
-
LODESTONE_TRACKER
-
FIREWORK_EXPLOSION
-
FIREWORKS
-
PROFILE
-
NOTE_BLOCK_SOUND
-
BANNER_PATTERNS
-
BASE_COLOR
-
POT_DECORATIONS
-
CONTAINER
-
BLOCK_STATE
-
BEES
-
LOCK
-
CONTAINER_LOOT
-
id
protected final int id -
reader
-
writer
-
dataComponentFactory
-
-
Constructor Details
-
DataComponentType
protected DataComponentType(DataComponentType.Reader<T> reader, DataComponentType.Writer<T> writer, DataComponentType.DataComponentFactory<T> dataComponentFactory)
-
-
Method Details
-
readDataComponent
public DataComponent<T,? extends DataComponentType<T>> readDataComponent(ItemCodecHelper helper, io.netty.buffer.ByteBuf input) -
readNullDataComponent
-
writeDataComponent
-
read
-
from
-
size
public static int size() -
getId
public int getId() -
getReader
-
getWriter
-
getDataComponentFactory
-