Package net.minecraft.entity
Class SpawnRestriction
java.lang.Object
net.minecraft.entity.SpawnRestriction
- Mappings:
- Namespace - Name - official - bcv- intermediary - net/minecraft/class_1317- named - net/minecraft/entity/SpawnRestriction
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprivate static classstatic enumstatic interfaceSpawnRestriction.SpawnPredicate<T extends Entity>
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <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) 
- 
Field Details- 
RESTRICTIONS- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbcv;a:Ljava/util/Map;- intermediary - field_6313- Lnet/minecraft/class_1317;field_6313:Ljava/util/Map;- named - RESTRICTIONS- Lnet/minecraft/entity/SpawnRestriction;RESTRICTIONS:Ljava/util/Map;
 
 
- 
- 
Constructor Details- 
SpawnRestrictionpublic SpawnRestriction()
 
- 
- 
Method Details- 
registerprivate 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 - a- Lbcv;a(Lbbr;Lbcv$c;Ldar$a;Lbcv$b;)V- intermediary - method_20637- Lnet/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;)V- named - register- Lnet/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- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbcv;a(Lbbr;)Lbcv$c;- intermediary - method_6159- Lnet/minecraft/class_1317;method_6159(Lnet/minecraft/class_1299;)Lnet/minecraft/class_1317$class_1319;- named - getLocation- Lnet/minecraft/entity/SpawnRestriction;getLocation(Lnet/minecraft/entity/EntityType;)Lnet/minecraft/entity/SpawnRestriction$Location;
 
- 
getHeightmapType- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbcv;b(Lbbr;)Ldar$a;- intermediary - method_6160- Lnet/minecraft/class_1317;method_6160(Lnet/minecraft/class_1299;)Lnet/minecraft/class_2902$class_2903;- named - getHeightmapType- Lnet/minecraft/entity/SpawnRestriction;getHeightmapType(Lnet/minecraft/entity/EntityType;)Lnet/minecraft/world/Heightmap$Type;
 
- 
canSpawnpublic static <T extends Entity> boolean canSpawn(EntityType<T> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lbcv;a(Lbbr;Lchm;Lbcg;Lgt;Lamn;)Z- intermediary - method_20638- Lnet/minecraft/class_1317;method_20638(Lnet/minecraft/class_1299;Lnet/minecraft/class_5425;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Z- named - canSpawn- Lnet/minecraft/entity/SpawnRestriction;canSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Z
 
 
-