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
Applies a bonus count with a special formula used for fortune ore drops.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ApplyBonusCount.OreDrops> static final ApplyBonusCount.OreDropsstatic final ApplyBonusCount.FormulaType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcalculateNewCount(RandomSource random, int count, int level) 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
-
INSTANCE
-
CODEC
-
TYPE
-
-
Constructor Details
-
OreDrops
private OreDrops()Creates an instance of aOreDropsrecord class.
-
-
Method Details
-
calculateNewCount
- Specified by:
calculateNewCountin interfaceApplyBonusCount.Formula
-
getType
- Specified by:
getTypein interfaceApplyBonusCount.Formula
-
toString
-
hashCode
-
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.
-