Uses of Class
net.minecraft.util.random.Weight
Package
Description
-
Uses of Weight in net.minecraft.util.random
Modifier 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.Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Weight> Weight.CODEC
Modifier 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.ModifierConstructorDescriptionIntrusiveBase
(Weight p_146297_) Creates an instance of aWrapper
record class. -
Uses of Weight in net.minecraft.world.level.biome
ModifierConstructorDescriptionSpawnerData
(EntityType<?> p_151815_, Weight p_151816_, int p_151817_, int p_151818_) -
Uses of Weight in net.neoforged.neoforge.common
Modifier and TypeFieldDescriptionprivate final Weight
MonsterRoomHooks.MobEntry.weight
The field for theweight
record component.Modifier and TypeMethodDescriptionMonsterRoomHooks.MobEntry.getWeight()
MonsterRoomHooks.MobEntry.weight()
Returns the value of theweight
record component.ModifierConstructorDescriptionMobEntry
(EntityType<?> type, Weight weight) Creates an instance of aMobEntry
record class. -
Uses of Weight in net.neoforged.neoforge.registries.datamaps.builtin
Modifier and TypeFieldDescriptionprivate final Weight
MonsterRoomMob.weight
The field for theweight
record component.Modifier and TypeMethodDescriptionMonsterRoomMob.weight()
Returns the value of theweight
record component.ModifierConstructorDescriptionMonsterRoomMob
(Weight weight) Creates an instance of aMonsterRoomMob
record class.