类 SpawnRestriction
- java.lang.Object
-
- net.minecraft.entity.SpawnRestriction
-
public class SpawnRestriction extends Object
- Mappings:
Namespace Name official atqintermediary net/minecraft/class_1317named net/minecraft/entity/SpawnRestriction
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 (专用程序包) static classSpawnRestriction.Entrystatic classSpawnRestriction.Locationstatic interfaceSpawnRestriction.SpawnPredicate<T extends Entity>
-
字段概要
字段 修饰符和类型 字段 说明 private static Map<EntityType<?>,SpawnRestriction.Entry>RESTRICTIONS
-
构造器概要
构造器 构造器 说明 SpawnRestriction()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static <T extends Entity>
booleancanSpawn(EntityType<T> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)static Heightmap.TypegetHeightmapType(@Nullable EntityType<?> type)static SpawnRestriction.LocationgetLocation(EntityType<?> type)private static <T extends MobEntity>
voidregister(EntityType<T> type, SpawnRestriction.Location location, Heightmap.Type heightmapType, SpawnRestriction.SpawnPredicate<T> predicate)
-
-
-
字段详细资料
-
RESTRICTIONS
private static final Map<EntityType<?>,SpawnRestriction.Entry> RESTRICTIONS
- Mappings:
Namespace Name Mixin selector official aLatq;a:Ljava/util/Map;intermediary field_6313Lnet/minecraft/class_1317;field_6313:Ljava/util/Map;named RESTRICTIONSLnet/minecraft/entity/SpawnRestriction;RESTRICTIONS:Ljava/util/Map;
-
-
方法详细资料
-
register
private static <T extends MobEntity> void register(EntityType<T> type, SpawnRestriction.Location location, Heightmap.Type heightmapType, SpawnRestriction.SpawnPredicate<T> predicate)
- Mappings:
Namespace Name Mixin selector official aLatq;a(Lasp;Latq$c;Lcor$a;Latq$b;)Vintermediary method_20637Lnet/minecraft/class_1317;method_20637(Lnet/minecraft/class_1299;Lnet/minecraft/class_1317$class_1319;Lnet/minecraft/class_2902$class_2903;Lnet/minecraft/class_1317$class_4306;)Vnamed registerLnet/minecraft/entity/SpawnRestriction;register(Lnet/minecraft/entity/EntityType;Lnet/minecraft/entity/SpawnRestriction$Location;Lnet/minecraft/world/Heightmap$Type;Lnet/minecraft/entity/SpawnRestriction$SpawnPredicate;)V
-
getLocation
public static SpawnRestriction.Location getLocation(EntityType<?> type)
- Mappings:
Namespace Name Mixin selector official aLatq;a(Lasp;)Latq$c;intermediary method_6159Lnet/minecraft/class_1317;method_6159(Lnet/minecraft/class_1299;)Lnet/minecraft/class_1317$class_1319;named getLocationLnet/minecraft/entity/SpawnRestriction;getLocation(Lnet/minecraft/entity/EntityType;)Lnet/minecraft/entity/SpawnRestriction$Location;
-
getHeightmapType
public static Heightmap.Type getHeightmapType(@Nullable @Nullable EntityType<?> type)
- Mappings:
Namespace Name Mixin selector official bLatq;b(Lasp;)Lcor$a;intermediary method_6160Lnet/minecraft/class_1317;method_6160(Lnet/minecraft/class_1299;)Lnet/minecraft/class_2902$class_2903;named getHeightmapTypeLnet/minecraft/entity/SpawnRestriction;getHeightmapType(Lnet/minecraft/entity/EntityType;)Lnet/minecraft/world/Heightmap$Type;
-
canSpawn
public static <T extends Entity> boolean canSpawn(EntityType<T> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
- Mappings:
Namespace Name Mixin selector official aLatq;a(Lasp;Lbwf;Latb;Lgb;Ljava/util/Random;)Zintermediary method_20638Lnet/minecraft/class_1317;method_20638(Lnet/minecraft/class_1299;Lnet/minecraft/class_5425;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Ljava/util/Random;)Znamed canSpawnLnet/minecraft/entity/SpawnRestriction;canSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)Z
-
-