记录类 MonsterRoomMob
java.lang.Object
java.lang.Record
net.neoforged.neoforge.registries.datamaps.builtin.MonsterRoomMob
- 记录组件:
weight
- The weight that will be used for this type when selecting a type for the spawner
Data map value for monster room spawner mobs.
-
字段概要
字段修饰符和类型字段说明static final com.mojang.serialization.Codec
<MonsterRoomMob> private final int
weight
记录组件的字段。static final com.mojang.serialization.Codec
<MonsterRoomMob> -
构造器概要
构造器 -
方法概要
-
字段详细资料
-
weight
private final int weightweight
记录组件的字段。 -
WEIGHT_CODEC
-
CODEC
-
-
构造器详细资料
-
MonsterRoomMob
public MonsterRoomMob(int weight) 创建MonsterRoomMob
记录类的实例。- 参数:
weight
-weight
记录组件的值
-
-
方法详细资料