Package net.minecraft.entity
Class SpawnRestriction
java.lang.Object
net.minecraft.entity.SpawnRestriction
- Mappings:
Namespace Name named net/minecraft/entity/SpawnRestrictionintermediary net/minecraft/class_1317official buk
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final recordstatic interfaceSpawnRestriction.SpawnPredicate<T extends Entity> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Entity>
booleancanSpawn(EntityType<T> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) static Heightmap.TypegetHeightmapType(@Nullable EntityType<?> type) static SpawnLocationgetLocation(EntityType<?> type) static booleanisSpawnPosAllowed(EntityType<?> type, WorldView world, BlockPos pos) private static <T extends MobEntity>
voidregister(EntityType<T> type, SpawnLocation location, Heightmap.Type heightmapType, SpawnRestriction.SpawnPredicate<T> predicate)
-
Field Details
-
RESTRICTIONS
- Mappings:
Namespace Name Mixin selector named RESTRICTIONSLnet/minecraft/entity/SpawnRestriction;RESTRICTIONS:Ljava/util/Map;intermediary field_6313Lnet/minecraft/class_1317;field_6313:Ljava/util/Map;official aLbuk;a:Ljava/util/Map;
-
-
Constructor Details
-
SpawnRestriction
public SpawnRestriction()
-
-
Method Details
-
register
private static <T extends MobEntity> void register(EntityType<T> type, SpawnLocation location, Heightmap.Type heightmapType, SpawnRestriction.SpawnPredicate<T> predicate) - Mappings:
Namespace Name Mixin selector named registerLnet/minecraft/entity/SpawnRestriction;register(Lnet/minecraft/entity/EntityType;Lnet/minecraft/entity/SpawnLocation;Lnet/minecraft/world/Heightmap$Type;Lnet/minecraft/entity/SpawnRestriction$SpawnPredicate;)Vintermediary method_20637Lnet/minecraft/class_1317;method_20637(Lnet/minecraft/class_1299;Lnet/minecraft/class_9168;Lnet/minecraft/class_2902$class_2903;Lnet/minecraft/class_1317$class_4306;)Vofficial aLbuk;a(Lbsx;Lbui;Ldyy$a;Lbuk$b;)V
-
getLocation
- Mappings:
Namespace Name Mixin selector named getLocationLnet/minecraft/entity/SpawnRestriction;getLocation(Lnet/minecraft/entity/EntityType;)Lnet/minecraft/entity/SpawnLocation;intermediary method_6159Lnet/minecraft/class_1317;method_6159(Lnet/minecraft/class_1299;)Lnet/minecraft/class_9168;official aLbuk;a(Lbsx;)Lbui;
-
isSpawnPosAllowed
- Mappings:
Namespace Name Mixin selector named isSpawnPosAllowedLnet/minecraft/entity/SpawnRestriction;isSpawnPosAllowed(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Zintermediary method_56558Lnet/minecraft/class_1317;method_56558(Lnet/minecraft/class_1299;Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Zofficial aLbuk;a(Lbsx;Ldcz;Ljd;)Z
-
getHeightmapType
- Mappings:
Namespace Name Mixin selector named getHeightmapTypeLnet/minecraft/entity/SpawnRestriction;getHeightmapType(Lnet/minecraft/entity/EntityType;)Lnet/minecraft/world/Heightmap$Type;intermediary method_6160Lnet/minecraft/class_1317;method_6160(Lnet/minecraft/class_1299;)Lnet/minecraft/class_2902$class_2903;official bLbuk;b(Lbsx;)Ldyy$a;
-
canSpawn
public static <T extends Entity> boolean canSpawn(EntityType<T> type, ServerWorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random) - Mappings:
Namespace Name Mixin selector named canSpawnLnet/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;)Zintermediary method_20638Lnet/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;)Zofficial aLbuk;a(Lbsx;Lddl;Lbtr;Ljd;Layw;)Z
-