Class ComponentTypes
java.lang.Object
com.github.retrooper.packetevents.protocol.component.ComponentTypes
Contains all item data component types.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ComponentType
<ItemAttributeModifiers> static final ComponentType
<BannerLayers> static final ComponentType
<DyeColor> static final ComponentType
<ItemBees> static final ComponentType
<NBTCompound> static final ComponentType
<ItemBlockStateProperties> static final ComponentType
<NBTCompound> static final ComponentType
<BundleContents> static final ComponentType
<ItemAdventurePredicate> static final ComponentType
<ItemAdventurePredicate> static final ComponentType
<ChargedProjectiles> static final ComponentType
<ItemConsumable> static final ComponentType
<ItemContainerContents> static final ComponentType
<ItemContainerLoot> static final ComponentType
<Dummy> static final ComponentType
<NBTCompound> static final ComponentType
<Integer> Deprecated.static final ComponentType
<ItemCustomModelData> static final ComponentType
<net.kyori.adventure.text.Component> static final ComponentType
<Integer> static final ComponentType
<ItemDamageResistant> static final ComponentType
<ItemDeathProtection> static final ComponentType
<DebugStickState> static final ComponentType
<ItemDyeColor> static final ComponentType
<ItemEnchantable> static final ComponentType
<Boolean> static final ComponentType
<ItemEnchantments> static final ComponentType
<NBTCompound> static final ComponentType
<ItemEquippable> static final ComponentType
<Dummy> Has been migrated to #DAMAGE_RESISTANT with 1.21.2.static final ComponentType
<FireworkExplosion> static final ComponentType
<ItemFireworks> static final ComponentType
<FoodProperties> static final ComponentType
<Dummy> static final ComponentType
<Dummy> static final ComponentType
<Dummy> static final ComponentType
<Instrument> static final ComponentType
<Dummy> static final ComponentType
<ItemModel> static final ComponentType
<net.kyori.adventure.text.Component> static final ComponentType
<ItemJukeboxPlayable> static final ComponentType
<ItemLock> static final ComponentType
<LodestoneTracker> static final ComponentType
<ItemLore> static final ComponentType
<Integer> static final ComponentType
<ItemMapDecorations> static final ComponentType
<Integer> static final ComponentType
<ItemMapPostProcessingState> static final ComponentType
<Integer> static final ComponentType
<Integer> static final ComponentType
<ResourceLocation> static final ComponentType
<Integer> static final ComponentType
<PotDecorations> static final ComponentType
<ItemPotionContents> static final ComponentType
<ItemProfile> static final ComponentType
<ItemRarity> static final ComponentType
<ItemRecipes> static final ComponentType
<Integer> static final ComponentType
<ItemRepairable> static final ComponentType
<ItemEnchantments> static final ComponentType
<SuspiciousStewEffects> static final ComponentType
<ItemTool> static final ComponentType
<ItemTooltipStyle> static final ComponentType
<ArmorTrim> static final ComponentType
<Boolean> static final ComponentType
<ItemUseCooldown> static final ComponentType
<ItemUseRemainder> static final ComponentType
<WritableBookContent> static final ComponentType
<WrittenBookContent> -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ComponentType
<T> static <T> ComponentType
<T> define
(String key, @Nullable PacketWrapper.Reader<T> reader, @Nullable PacketWrapper.Writer<T> writer) static ComponentType
<?> getById
(ClientVersion version, int id) static ComponentType
<?> static VersionedRegistry
<ComponentType<?>> static Collection
<ComponentType<?>> values()
Returns an immutable view of the component types.
-
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_LISTS
-
CUSTOM_MODEL_DATA
Deprecated.Rewritten in 1.21.4 -
HIDE_ADDITIONAL_TOOLTIP
-
HIDE_TOOLTIP
-
REPAIR_COST
-
CREATIVE_SLOT_LOCK
-
ENCHANTMENT_GLINT_OVERRIDE
-
INTANGIBLE_PROJECTILE
-
FOOD
-
FIRE_RESISTANT
Has been migrated to #DAMAGE_RESISTANT with 1.21.2. -
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
-
RECIPES
-
LODESTONE_TRACKER
-
FIREWORK_EXPLOSION
-
FIREWORKS
-
PROFILE
-
NOTE_BLOCK_SOUND
-
BANNER_PATTERNS
-
BASE_COLOR
-
POT_DECORATIONS
-
CONTAINER
-
BLOCK_STATE
-
BEES
-
LOCK
-
CONTAINER_LOOT
-
JUKEBOX_PLAYABLE
-
CONSUMABLE
-
USE_REMAINDER
-
USE_COOLDOWN
-
ENCHANTABLE
-
REPAIRABLE
-
ITEM_MODEL
-
DAMAGE_RESISTANT
-
EQUIPPABLE
-
GLIDER
-
DEATH_PROTECTION
-
TOOLTIP_STYLE
-
-
Method Details
-
define
-
define
@Internal public static <T> ComponentType<T> define(String key, @Nullable @Nullable PacketWrapper.Reader<T> reader, @Nullable @Nullable PacketWrapper.Writer<T> writer) -
getRegistry
-
getByName
-
getById
-
values
Returns an immutable view of the component types.- Returns:
- Component Types
-