Uses of Class
net.minecraft.util.random.Weight
Packages that use Weight
Package
Description
-
Uses of Weight in net.minecraft.util.random
Fields in net.minecraft.util.random declared as WeightModifier and TypeFieldDescriptionprivate static final Weight
Weight.ONE
private final Weight
WeightedEntry.IntrusiveBase.weight
private final Weight
WeightedEntry.Wrapper.weight
The field for theweight
record component.Fields in net.minecraft.util.random with type parameters of type WeightModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Weight> Weight.CODEC
Methods in net.minecraft.util.random that return WeightModifier and TypeMethodDescriptionWeightedEntry.getWeight()
WeightedEntry.IntrusiveBase.getWeight()
WeightedEntry.Wrapper.getWeight()
static Weight
Weight.of
(int p_146283_) WeightedEntry.Wrapper.weight()
Returns the value of theweight
record component.Constructors in net.minecraft.util.random with parameters of type WeightModifierConstructorDescriptionIntrusiveBase
(Weight p_146297_) Creates an instance of aWrapper
record class. -
Uses of Weight in net.minecraft.world.level.biome
Constructors in net.minecraft.world.level.biome with parameters of type WeightModifierConstructorDescriptionSpawnerData
(EntityType<?> p_151815_, Weight p_151816_, int p_151817_, int p_151818_) -
Uses of Weight in net.neoforged.neoforge.common
Fields in net.neoforged.neoforge.common declared as WeightModifier and TypeFieldDescriptionprivate final Weight
MonsterRoomHooks.MobEntry.weight
The field for theweight
record component.Methods in net.neoforged.neoforge.common that return WeightModifier and TypeMethodDescriptionMonsterRoomHooks.MobEntry.getWeight()
MonsterRoomHooks.MobEntry.weight()
Returns the value of theweight
record component.Constructors in net.neoforged.neoforge.common with parameters of type WeightModifierConstructorDescriptionMobEntry
(EntityType<?> type, Weight weight) Creates an instance of aMobEntry
record class. -
Uses of Weight in net.neoforged.neoforge.registries.datamaps.builtin
Fields in net.neoforged.neoforge.registries.datamaps.builtin declared as WeightModifier and TypeFieldDescriptionprivate final Weight
MonsterRoomMob.weight
The field for theweight
record component.Methods in net.neoforged.neoforge.registries.datamaps.builtin that return WeightModifier and TypeMethodDescriptionMonsterRoomMob.weight()
Returns the value of theweight
record component.Constructors in net.neoforged.neoforge.registries.datamaps.builtin with parameters of type WeightModifierConstructorDescriptionMonsterRoomMob
(Weight weight) Creates an instance of aMonsterRoomMob
record class.