Record Class StructuredDataKey<T>
java.lang.Object
java.lang.Record
com.viaversion.viaversion.api.minecraft.data.StructuredDataKey<T>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final StructuredDataKey<AttributeModifiers1_20_5>
static final StructuredDataKey<AttributeModifiers1_21>
static final StructuredDataKey<BannerPatternLayer[]>
static final StructuredDataKey<Integer>
static final StructuredDataKey<Bee[]>
static final StructuredDataKey<com.viaversion.nbt.tag.CompoundTag>
static final StructuredDataKey<BlockStateProperties>
static final StructuredDataKey<com.viaversion.nbt.tag.CompoundTag>
static final StructuredDataKey<Item[]>
static final StructuredDataKey<Item[]>
static final StructuredDataKey<AdventureModePredicate>
static final StructuredDataKey<AdventureModePredicate>
static final StructuredDataKey<Item[]>
static final StructuredDataKey<Item[]>
static final StructuredDataKey<com.viaversion.nbt.tag.CompoundTag>
static final StructuredDataKey<Item[]>
static final StructuredDataKey<Item[]>
static final StructuredDataKey<Unit>
static final StructuredDataKey<com.viaversion.nbt.tag.CompoundTag>
static final StructuredDataKey<Integer>
static final StructuredDataKey<com.viaversion.nbt.tag.Tag>
static final StructuredDataKey<Integer>
static final StructuredDataKey<com.viaversion.nbt.tag.CompoundTag>
static final StructuredDataKey<DyedColor>
static final StructuredDataKey<Boolean>
static final StructuredDataKey<Enchantments>
static final StructuredDataKey<com.viaversion.nbt.tag.CompoundTag>
static final StructuredDataKey<Unit>
static final StructuredDataKey<FireworkExplosion>
static final StructuredDataKey<Fireworks>
static final StructuredDataKey<FoodProperties>
static final StructuredDataKey<FoodProperties>
static final StructuredDataKey<Unit>
static final StructuredDataKey<Unit>
static final StructuredDataKey<Holder<Instrument>>
static final StructuredDataKey<com.viaversion.nbt.tag.Tag>
static final StructuredDataKey<com.viaversion.nbt.tag.Tag>
static final StructuredDataKey<JukeboxPlayable>
static final StructuredDataKey<com.viaversion.nbt.tag.Tag>
static final StructuredDataKey<LodestoneTracker>
static final StructuredDataKey<com.viaversion.nbt.tag.Tag[]>
static final StructuredDataKey<Integer>
static final StructuredDataKey<com.viaversion.nbt.tag.CompoundTag>
static final StructuredDataKey<Integer>
static final StructuredDataKey<Integer>
static final StructuredDataKey<Integer>
static final StructuredDataKey<Integer>
static final StructuredDataKey<String>
static final StructuredDataKey<Integer>
static final StructuredDataKey<PotDecorations>
static final StructuredDataKey<PotionContents>
static final StructuredDataKey<GameProfile>
static final StructuredDataKey<Integer>
static final StructuredDataKey<com.viaversion.nbt.tag.Tag>
static final StructuredDataKey<Integer>
static final StructuredDataKey<Enchantments>
static final StructuredDataKey<SuspiciousStewEffect[]>
static final StructuredDataKey<ToolProperties>
static final StructuredDataKey<ArmorTrim>
static final StructuredDataKey<Unbreakable>
static final StructuredDataKey<FilterableString[]>
static final StructuredDataKey<WrittenBook>
-
Constructor Summary
ConstructorDescriptionStructuredDataKey
(String identifier, Type<T> type) Creates an instance of aStructuredDataKey
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theidentifier
record component.toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Field Details
-
CUSTOM_DATA
-
MAX_STACK_SIZE
-
MAX_DAMAGE
-
DAMAGE
-
UNBREAKABLE
-
CUSTOM_NAME
-
ITEM_NAME
-
LORE
-
RARITY
-
ENCHANTMENTS
-
CAN_PLACE_ON
-
CAN_BREAK
-
ATTRIBUTE_MODIFIERS1_20_5
-
ATTRIBUTE_MODIFIERS1_21
-
CUSTOM_MODEL_DATA
-
HIDE_ADDITIONAL_TOOLTIP
-
HIDE_TOOLTIP
-
REPAIR_COST
-
CREATIVE_SLOT_LOCK
-
ENCHANTMENT_GLINT_OVERRIDE
-
INTANGIBLE_PROJECTILE
-
FOOD1_20_5
-
FOOD1_21
-
FIRE_RESISTANT
-
TOOL
-
STORED_ENCHANTMENTS
-
DYED_COLOR
-
MAP_COLOR
-
MAP_ID
-
MAP_DECORATIONS
-
MAP_POST_PROCESSING
-
CHARGED_PROJECTILES1_20_5
-
CHARGED_PROJECTILES1_21
-
BUNDLE_CONTENTS1_20_5
-
BUNDLE_CONTENTS1_21
-
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
-
CONTAINER1_20_5
-
CONTAINER1_21
-
BLOCK_STATE
-
BEES
-
LOCK
-
CONTAINER_LOOT
-
-
Constructor Details
-
StructuredDataKey
Creates an instance of aStructuredDataKey
record class.- Parameters:
identifier
- the value for theidentifier
record componenttype
- the value for thetype
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
identifier
Returns the value of theidentifier
record component.- Returns:
- the value of the
identifier
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-