Package net.neoforged.neoforge.common
Class MonsterRoomHooks
java.lang.Object
net.neoforged.neoforge.common.MonsterRoomHooks
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static net.minecraft.util.random.WeightedList
<net.minecraft.world.entity.EntityType<?>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.entity.EntityType
<?> getRandomMonsterRoomMob
(net.minecraft.util.RandomSource rand) Gets a random entity type from the weighted list.static void
-
Field Details
-
monsterRoomMobs
private static net.minecraft.util.random.WeightedList<net.minecraft.world.entity.EntityType<?>> monsterRoomMobs
-
-
Constructor Details
-
MonsterRoomHooks
public MonsterRoomHooks()
-
-
Method Details
-
onDataMapsUpdated
-
getRandomMonsterRoomMob
public static net.minecraft.world.entity.EntityType<?> getRandomMonsterRoomMob(net.minecraft.util.RandomSource rand) Gets a random entity type from the weighted list.- Parameters:
rand
- World generation random source- Returns:
- The entity type
-