Package net.minecraft.loot.function
Record Class ApplyBonusLootFunction.Type
java.lang.Object
java.lang.Record
net.minecraft.loot.function.ApplyBonusLootFunction.Type
- Record Components:
- id-
- codec-
- Enclosing class:
- ApplyBonusLootFunction
private static record ApplyBonusLootFunction.Type(Identifier id, com.mojang.serialization.Codec<? extends ApplyBonusLootFunction.Formula> codec)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/loot/function/ApplyBonusLootFunction$Type- intermediary - net/minecraft/class_94$class_8752- official - ewp$c- named - id- intermediary - comp_1850- official - a- named - codec- intermediary - comp_1851- official - b
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final com.mojang.serialization.Codec<? extends ApplyBonusLootFunction.Formula> The field for thecodecrecord component.private final IdentifierThe field for theidrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionType(Identifier identifier, com.mojang.serialization.Codec<? extends ApplyBonusLootFunction.Formula> codec) 
- 
Method SummaryModifier and TypeMethodDescriptioncom.mojang.serialization.Codec<? extends ApplyBonusLootFunction.Formula> codec()Returns the value of thecodecrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details
- 
Constructor Details- 
TypeType(Identifier identifier, com.mojang.serialization.Codec<? extends ApplyBonusLootFunction.Formula> codec) 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
idReturns the value of theidrecord component.- Returns:
- the value of the idrecord component
 
- 
codecReturns the value of thecodecrecord component.- Returns:
- the value of the codecrecord component
 
 
-