Record Class VanillaChargedCreeperLootTableGenerator.Table
java.lang.Object
java.lang.Record
net.minecraft.data.loottable.vanilla.VanillaChargedCreeperLootTableGenerator.Table
- Record Components:
lootTable-entityType-item-
- Enclosing class:
VanillaChargedCreeperLootTableGenerator
private static record VanillaChargedCreeperLootTableGenerator.Table(RegistryKey<LootTable> lootTable, EntityType<?> entityType, Item item)
extends Record
- Mappings:
Namespace Name named net/minecraft/data/loottable/vanilla/VanillaChargedCreeperLootTableGenerator$Tableintermediary net/minecraft/class_11703$class_11704official oc$anamed lootTableintermediary comp_4562official anamed entityTypeintermediary comp_4563official bnamed itemintermediary comp_4564official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EntityType<?> The field for theentityTyperecord component.private final ItemThe field for theitemrecord component.private final RegistryKey<LootTable> The field for thelootTablerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTable(RegistryKey<LootTable> registryKey, EntityType<?> entityType, Item item) -
Method Summary
Modifier and TypeMethodDescriptionEntityType<?> Returns the value of theentityTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.item()Returns the value of theitemrecord component.Returns the value of thelootTablerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
lootTable
The field for thelootTablerecord component. -
entityType
The field for theentityTyperecord component. -
item
The field for theitemrecord component.
-
-
Constructor Details
-
Table
Table(RegistryKey<LootTable> registryKey, EntityType<?> entityType, Item item)
-
-
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). -
lootTable
Returns the value of thelootTablerecord component.- Returns:
- the value of the
lootTablerecord component
-
entityType
Returns the value of theentityTyperecord component.- Returns:
- the value of the
entityTyperecord component
-
item
Returns the value of theitemrecord component.- Returns:
- the value of the
itemrecord component
-