Package net.minecraft.world
Class NaturalSpawner
java.lang.Object
net.minecraft.world.NaturalSpawner
- Mappings:
Namespace Name intermediary net/minecraft/class_567glue class_64server bpclient cqnamed net/minecraft/world/NaturalSpawner
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static BlockPosgetRandomPosInChunk(World world, int chunkX, int chunkZ) private static booleanisValidSpawnPos(SpawnGroup spawnGroup, World world, int x, int y, int z) private static voidpostSpawnEntity(LivingEntity entity, World world, float x, float y, float z) static booleanspawnMonstersAndWakePlayers(World world, List players) static final int
-
Field Details
-
mobSpawningChunks
Set of ChunkPos. This set keeps track of chunks that allow mob spawning. Mob spawning can occur within a 15x15 grid of chunks around players. The ring of chunks around that are lazy chunks, which do not allow mob spawning, but to contribute to the mob cap.- Mappings:
Namespace Name Mixin selector intermediary field_2409Lnet/minecraft/class_567;field_2409:Ljava/util/Set;glue field_140Lclass_64;field_140:Ljava/util/Set;server bLbp;b:Ljava/util/Set;client bLcq;b:Ljava/util/Set;named mobSpawningChunksLnet/minecraft/world/NaturalSpawner;mobSpawningChunks:Ljava/util/Set;
-
MONSTER_TYPE
Class is of any extends Monster- Mappings:
Namespace Name Mixin selector intermediary field_2408Lnet/minecraft/class_567;field_2408:[Ljava/lang/Class;glue field_139Lclass_64;field_139:[Ljava/lang/Class;server aLbp;a:[Ljava/lang/Class;client aLcq;a:[Ljava/lang/Class;named MONSTER_TYPELnet/minecraft/world/NaturalSpawner;MONSTER_TYPE:[Ljava/lang/Class;
-
-
Constructor Details
-
NaturalSpawner
public NaturalSpawner()
-
-
Method Details
-
getRandomPosInChunk
- Mappings:
Namespace Name Mixin selector intermediary method_1868Lnet/minecraft/class_567;method_1868(Lnet/minecraft/class_18;II)Lnet/minecraft/class_339;glue method_201Lclass_64;method_201(Lclass_129;II)Lclass_544;server aLbp;a(Ldj;II)Loa;client aLcq;a(Lfd;II)Lwf;named getRandomPosInChunkLnet/minecraft/world/NaturalSpawner;getRandomPosInChunk(Lnet/minecraft/world/World;II)Lnet/minecraft/util/math/BlockPos;
-
tick
- Mappings:
Namespace Name Mixin selector intermediary method_1870Lnet/minecraft/class_567;method_1870(Lnet/minecraft/class_18;ZZ)Iglue method_203Lclass_64;method_203(Lclass_129;ZZ)Iserver aLbp;a(Ldj;ZZ)Iclient aLcq;a(Lfd;ZZ)Inamed tickLnet/minecraft/world/NaturalSpawner;tick(Lnet/minecraft/world/World;ZZ)I
-
isValidSpawnPos
- Mappings:
Namespace Name Mixin selector intermediary method_1871Lnet/minecraft/class_567;method_1871(Lnet/minecraft/class_238;Lnet/minecraft/class_18;III)Zglue method_204Lclass_64;method_204(Lclass_277;Lclass_129;III)Zserver aLbp;a(Lhh;Ldj;III)Zclient aLcq;a(Llk;Lfd;III)Znamed isValidSpawnPosLnet/minecraft/world/NaturalSpawner;isValidSpawnPos(Lnet/minecraft/entity/SpawnGroup;Lnet/minecraft/world/World;III)Z
-
postSpawnEntity
- Mappings:
Namespace Name Mixin selector intermediary method_1872Lnet/minecraft/class_567;method_1872(Lnet/minecraft/class_127;Lnet/minecraft/class_18;FFF)Vglue method_205Lclass_64;method_205(Lclass_283;Lclass_129;FFF)Vserver aLbp;a(Lhl;Ldj;FFF)Vclient aLcq;a(Lls;Lfd;FFF)Vnamed postSpawnEntityLnet/minecraft/world/NaturalSpawner;postSpawnEntity(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/world/World;FFF)V
-
spawnMonstersAndWakePlayers
- Mappings:
Namespace Name Mixin selector intermediary method_1869Lnet/minecraft/class_567;method_1869(Lnet/minecraft/class_18;Ljava/util/List;)Zglue method_202Lclass_64;method_202(Lclass_129;Ljava/util/List;)Zserver aLbp;a(Ldj;Ljava/util/List;)Zclient aLcq;a(Lfd;Ljava/util/List;)Znamed spawnMonstersAndWakePlayersLnet/minecraft/world/NaturalSpawner;spawnMonstersAndWakePlayers(Lnet/minecraft/world/World;Ljava/util/List;)Z
-