Uses of Class
net.minecraft.util.collection.Weight
Packages that use Weight
-
Uses of Weight in net.minecraft.util.collection
Fields in net.minecraft.util.collection declared as WeightModifier and TypeFieldDescriptionprivate static final Weight
Weight.DEFAULT
private final Weight
Weighted.Absent.weight
private final Weight
Weighted.Present.weight
The field for theweight
record component.Fields in net.minecraft.util.collection with type parameters of type WeightModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Weight> Weight.CODEC
Methods in net.minecraft.util.collection that return WeightModifier and TypeMethodDescriptionWeighted.Absent.getWeight()
Weighted.getWeight()
Weighted.Present.getWeight()
static Weight
Weight.of
(int weight) Weighted.Present.weight()
Returns the value of theweight
record component.Constructors in net.minecraft.util.collection with parameters of type Weight -
Uses of Weight in net.minecraft.world.biome
Constructors in net.minecraft.world.biome with parameters of type WeightModifierConstructorDescriptionSpawnEntry
(EntityType<?> type, Weight weight, int minGroupSize, int maxGroupSize)