Class ComponentTypes
java.lang.Object
com.github.retrooper.packetevents.protocol.component.ComponentTypes
Contains all item data component types.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComponentType<ItemAttributeModifiers> static final ComponentType<AxolotlVariantComponent> Added with 1.21.5static final ComponentType<BannerLayers> static final ComponentType<DyeColor> static final ComponentType<ItemBees> static final ComponentType<NBTCompound> static final ComponentType<ItemBlockStateProperties> static final ComponentType<ItemBlocksAttacks> Added with 1.21.5static final ComponentType<ItemBreakSound> Added with 1.21.5static final ComponentType<NBTCompound> static final ComponentType<BundleContents> static final ComponentType<ItemAdventurePredicate> static final ComponentType<ItemAdventurePredicate> static final ComponentType<CatCollarComponent> Added with 1.21.5static final ComponentType<CatVariantComponent> Added with 1.21.5static final ComponentType<ChargedProjectiles> static final ComponentType<ChickenVariantComponent> Added with 1.21.5static final ComponentType<ItemConsumable> static final ComponentType<ItemContainerContents> static final ComponentType<ItemContainerLoot> static final ComponentType<CowVariantComponent> Added with 1.21.5static 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<FoxVariantComponent> Added with 1.21.5static final ComponentType<FrogVariantComponent> Added with 1.21.5static final ComponentType<Dummy> static final ComponentType<Dummy> Removed with 1.21.5static final ComponentType<Dummy> Removed with 1.21.5static final ComponentType<HorseVariantComponent> Added with 1.21.5static final ComponentType<Instrument> Deprecated.static final ComponentType<Dummy> static final ComponentType<ItemInstrument> static final ComponentType<ItemModel> static final ComponentType<net.kyori.adventure.text.Component> static final ComponentType<ItemJukeboxPlayable> static final ComponentType<LlamaVariantComponent> Added with 1.21.5static 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<MooshroomVariantComponent> Added with 1.21.5static final ComponentType<ResourceLocation> static final ComponentType<Integer> static final ComponentType<PaintingVariantComponent> Added with 1.21.5static final ComponentType<ParrotVariantComponent> Added with 1.21.5static final ComponentType<PigVariantComponent> Added with 1.21.5static final ComponentType<PotDecorations> static final ComponentType<ItemPotionContents> static final ComponentType<ItemPotionDurationScale> Added with 1.21.5static final ComponentType<ItemProfile> static final ComponentType<ItemProvidesBannerPatterns> Added with 1.21.5static final ComponentType<ItemProvidesTrimMaterial> Added with 1.21.5static final ComponentType<RabbitVariantComponent> Added with 1.21.5static final ComponentType<ItemRarity> static final ComponentType<ItemRecipes> static final ComponentType<Integer> static final ComponentType<ItemRepairable> static final ComponentType<SalmonSizeComponent> Added with 1.21.5static final ComponentType<SheepColorComponent> Added with 1.21.5static final ComponentType<ShulkerColorComponent> Added with 1.21.5static final ComponentType<ItemEnchantments> static final ComponentType<SuspiciousStewEffects> static final ComponentType<ItemTool> static final ComponentType<ItemTooltipDisplay> Added with 1.21.5static final ComponentType<ItemTooltipStyle> static final ComponentType<ArmorTrim> static final ComponentType<TropicalFishBaseColorComponent> Added with 1.21.5static final ComponentType<TropicalFishPatternComponent> Added with 1.21.5static final ComponentType<TropicalFishPatternColorComponent> Added with 1.21.5static final ComponentType<Boolean> Deprecated.static final ComponentType<ItemUnbreakable> static final ComponentType<ItemUseCooldown> static final ComponentType<ItemUseRemainder> static final ComponentType<VillagerVariantComponent> Added with 1.21.5static final ComponentType<ItemWeapon> Added with 1.21.5static final ComponentType<WolfCollarComponent> Added with 1.21.5static final ComponentType<WolfSoundVariantComponent> Added with 1.21.5static final ComponentType<WolfVariantComponent> Added with 1.21.5static 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_MODERN
-
UNBREAKABLE
Deprecated.Changed in 1.21.5 -
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
Removed with 1.21.5 -
HIDE_TOOLTIP
Removed with 1.21.5 -
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
-
ITEM_INSTRUMENT
-
INSTRUMENT
Deprecated. -
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
-
TOOLTIP_DISPLAY
Added with 1.21.5 -
WEAPON
Added with 1.21.5 -
BLOCKS_ATTACKS
Added with 1.21.5 -
POTION_DURATION_SCALE
Added with 1.21.5 -
PROVIDES_TRIM_MATERIAL
Added with 1.21.5 -
PROVIDES_BANNER_PATTERNS
Added with 1.21.5 -
BREAK_SOUND
Added with 1.21.5 -
VILLAGER_VARIANT
Added with 1.21.5 -
WOLF_VARIANT
Added with 1.21.5 -
WOLF_SOUND_VARIANT
Added with 1.21.5 -
WOLF_COLLAR
Added with 1.21.5 -
FOX_VARIANT
Added with 1.21.5 -
SALMON_SIZE
Added with 1.21.5 -
PARROT_VARIANT
Added with 1.21.5 -
TROPICAL_FISH_PATTERN
Added with 1.21.5 -
TROPICAL_FISH_BASE_COLOR
Added with 1.21.5 -
TROPICAL_FISH_PATTERN_COLOR
Added with 1.21.5 -
MOOSHROOM_VARIANT
Added with 1.21.5 -
RABBIT_VARIANT
Added with 1.21.5 -
PIG_VARIANT
Added with 1.21.5 -
COW_VARIANT
Added with 1.21.5 -
CHICKEN_VARIANT
Added with 1.21.5 -
FROG_VARIANT
Added with 1.21.5 -
HORSE_VARIANT
Added with 1.21.5 -
PAINTING_VARIANT
Added with 1.21.5 -
LLAMA_VARIANT
Added with 1.21.5 -
AXOLOTL_VARIANT
Added with 1.21.5 -
CAT_VARIANT
Added with 1.21.5 -
CAT_COLLAR
Added with 1.21.5 -
SHEEP_COLOR
Added with 1.21.5 -
SHULKER_COLOR
Added with 1.21.5
-
-
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
-