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 SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ApplyBonusCount.OreDrops>static final ApplyBonusCount.FormulaType
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintcalculateNewCount(RandomSource p_230972_, int p_230973_, int p_230974_) final booleanIndicates whether some other object is "equal to" this one.getType()final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
CODEC
- 
TYPE
 
- 
- 
Constructor Details- 
OreDropsOreDrops()Creates an instance of aOreDropsrecord class.
 
- 
- 
Method Details- 
calculateNewCount- Specified by:
- calculateNewCountin interface- ApplyBonusCount.Formula
 
- 
getType- Specified by:
- getTypein interface- ApplyBonusCount.Formula
 
- 
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.
 
-