Record Class ApplyBonusCount.OreDrops
java.lang.Object
java.lang.Record
net.minecraft.world.level.storage.loot.functions.ApplyBonusCount.OreDrops
- All Implemented Interfaces:
ApplyBonusCount.Formula
- Enclosing class:
ApplyBonusCount
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ApplyBonusCount.OreDrops> static final ApplyBonusCount.FormulaType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
calculateNewCount
(RandomSource p_230972_, int p_230973_, int p_230974_) final boolean
Indicates whether some other object is "equal to" this one.getType()
final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
CODEC
-
TYPE
-
-
Constructor Details
-
OreDrops
OreDrops()Creates an instance of aOreDrops
record class.
-
-
Method Details
-
calculateNewCount
- Specified by:
calculateNewCount
in interfaceApplyBonusCount.Formula
-
getType
- Specified by:
getType
in interfaceApplyBonusCount.Formula
-
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.
-