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<Consumable>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 DataComponentType<CustomModelData>static final DataComponentType<net.kyori.adventure.text.Component>static final IntComponentTypestatic final DataComponentType<net.kyori.adventure.key.Key>protected final DataComponentType.DataComponentFactory<T>static final DataComponentType<List<ConsumeEffect>>static final DataComponentType<org.cloudburstmc.nbt.NbtMap>static final DataComponentType<DyedItemColor>static final IntComponentTypestatic final BooleanComponentTypestatic final DataComponentType<ItemEnchantments>static final DataComponentType<org.cloudburstmc.nbt.NbtMap>static final DataComponentType<Equippable>static final DataComponentType<Fireworks.FireworkExplosion>static final DataComponentType<Fireworks>static final DataComponentType<FoodProperties>static final DataComponentType<Unit>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.key.Key>static final DataComponentType<net.kyori.adventure.text.Component>static final DataComponentType<JukeboxPlayable>protected final net.kyori.adventure.key.Keystatic final DataComponentType<org.cloudburstmc.nbt.NbtMap>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<Float>static final DataComponentType<GameProfile>static final IntComponentTypeprotected final DataComponentType.Reader<T>static final DataComponentType<org.cloudburstmc.nbt.NbtList<?>>static final IntComponentTypestatic final DataComponentType<HolderSet>static final DataComponentType<ItemEnchantments>static final DataComponentType<List<SuspiciousStewEffect>>static final DataComponentType<ToolData>static final DataComponentType<net.kyori.adventure.key.Key>static final DataComponentType<ArmorTrim>static final DataComponentType<Unbreakable>static final DataComponentType<UseCooldown>static final DataComponentType<ItemStack>static final DataComponentType<Weapon>static final DataComponentType<WritableBookContent>protected final DataComponentType.Writer<T>static final DataComponentType<WrittenBookContent> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDataComponentType(String key, DataComponentType.Reader<T> reader, DataComponentType.Writer<T> writer, DataComponentType.DataComponentFactory<T> dataComponentFactory) -
Method Summary
Modifier and TypeMethodDescriptionstatic DataComponentType<?>from(int id) intgetId()net.kyori.adventure.key.KeygetKey()static DataComponentType<?>read(io.netty.buffer.ByteBuf in) DataComponent<T,? extends DataComponentType<T>> readDataComponent(io.netty.buffer.ByteBuf input) DataComponent<T,? extends DataComponentType<T>> static intsize()toString()voidwriteDataComponent(io.netty.buffer.ByteBuf output, T value)
-
Field Details
-
CUSTOM_DATA
-
MAX_STACK_SIZE
-
MAX_DAMAGE
-
DAMAGE
-
UNBREAKABLE
-
CUSTOM_NAME
-
ITEM_NAME
-
ITEM_MODEL
-
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
-
CONSUMABLE
-
USE_REMAINDER
-
USE_COOLDOWN
-
DAMAGE_RESISTANT
-
TOOL
-
WEAPON
-
ENCHANTABLE
-
EQUIPPABLE
-
REPAIRABLE
-
GLIDER
-
TOOLTIP_STYLE
-
DEATH_PROTECTION
-
STORED_ENCHANTMENTS
-
DYED_COLOR
-
MAP_COLOR
-
MAP_ID
-
MAP_DECORATIONS
-
MAP_POST_PROCESSING
-
CHARGED_PROJECTILES
-
BUNDLE_CONTENTS
-
POTION_CONTENTS
-
POTION_DURATION_SCALE
-
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 -
key
protected final net.kyori.adventure.key.Key key -
reader
-
writer
-
dataComponentFactory
-
-
Constructor Details
-
DataComponentType
protected DataComponentType(String key, DataComponentType.Reader<T> reader, DataComponentType.Writer<T> writer, DataComponentType.DataComponentFactory<T> dataComponentFactory)
-
-
Method Details
-
readDataComponent
public DataComponent<T,? extends DataComponentType<T>> readDataComponent(io.netty.buffer.ByteBuf input) -
readNullDataComponent
-
writeDataComponent
-
read
-
from
-
size
public static int size() -
toString
-
getId
public int getId() -
getKey
public net.kyori.adventure.key.Key getKey() -
getReader
-
getWriter
-
getDataComponentFactory
-