Package net.minecraft.world
Class MobSpawnerLogic
java.lang.Object
net.minecraft.world.MobSpawnerLogic
public abstract class MobSpawnerLogic extends Object
- Mappings:
Namespace Name official bsw
intermediary net/minecraft/class_1917
named net/minecraft/world/MobSpawnerLogic
-
Field Summary
Fields Modifier and Type Field Description private double
field_9159
private double
field_9161
private static Logger
LOGGER
private int
maxNearbyEntities
private int
maxSpawnDelay
private int
minSpawnDelay
private Random
random
private Entity
renderedEntity
private int
requiredPlayerRange
private int
spawnCount
private int
spawnDelay
private MobSpawnerEntry
spawnEntry
private List<MobSpawnerEntry>
spawnPotentials
private int
spawnRange
-
Constructor Summary
Constructors Constructor Description MobSpawnerLogic()
-
Method Summary
Modifier and Type Method Description void
clientTick(World world, BlockPos pos)
void
fromTag(World world, BlockPos pos, CompoundTag tag)
private Identifier
getEntityId(World world, BlockPos pos)
Entity
getRenderedEntity(World world)
private boolean
isPlayerInRange(World world, BlockPos pos)
boolean
method_8275(World world, int int2)
double
method_8278()
double
method_8279()
abstract void
sendStatus(World world, BlockPos pos, int int2)
void
serverTick(ServerWorld world, BlockPos pos)
void
setEntityId(EntityType<?> type)
void
setSpawnEntry(World world, BlockPos pos, MobSpawnerEntry spawnEntry)
CompoundTag
toTag(World world, BlockPos blockPos, CompoundTag compoundTag)
private void
updateSpawns(World world, BlockPos pos)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lbsw;a:Lorg/apache/logging/log4j/Logger;
intermediary field_9156
Lnet/minecraft/class_1917;field_9156:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/world/MobSpawnerLogic;LOGGER:Lorg/apache/logging/log4j/Logger;
-
spawnDelay
private int spawnDelay- Mappings:
Namespace Name Mixin selector official b
Lbsw;b:I
intermediary field_9154
Lnet/minecraft/class_1917;field_9154:I
named spawnDelay
Lnet/minecraft/world/MobSpawnerLogic;spawnDelay:I
-
spawnPotentials
- Mappings:
Namespace Name Mixin selector official c
Lbsw;c:Ljava/util/List;
intermediary field_9152
Lnet/minecraft/class_1917;field_9152:Ljava/util/List;
named spawnPotentials
Lnet/minecraft/world/MobSpawnerLogic;spawnPotentials:Ljava/util/List;
-
spawnEntry
- Mappings:
Namespace Name Mixin selector official d
Lbsw;d:Lbul;
intermediary field_9155
Lnet/minecraft/class_1917;field_9155:Lnet/minecraft/class_1952;
named spawnEntry
Lnet/minecraft/world/MobSpawnerLogic;spawnEntry:Lnet/minecraft/world/MobSpawnerEntry;
-
field_9161
private double field_9161- Mappings:
Namespace Name Mixin selector official e
Lbsw;e:D
intermediary field_9161
Lnet/minecraft/class_1917;field_9161:D
named field_9161
Lnet/minecraft/world/MobSpawnerLogic;field_9161:D
-
field_9159
private double field_9159- Mappings:
Namespace Name Mixin selector official f
Lbsw;f:D
intermediary field_9159
Lnet/minecraft/class_1917;field_9159:D
named field_9159
Lnet/minecraft/world/MobSpawnerLogic;field_9159:D
-
minSpawnDelay
private int minSpawnDelay- Mappings:
Namespace Name Mixin selector official g
Lbsw;g:I
intermediary field_9151
Lnet/minecraft/class_1917;field_9151:I
named minSpawnDelay
Lnet/minecraft/world/MobSpawnerLogic;minSpawnDelay:I
-
maxSpawnDelay
private int maxSpawnDelay- Mappings:
Namespace Name Mixin selector official h
Lbsw;h:I
intermediary field_9150
Lnet/minecraft/class_1917;field_9150:I
named maxSpawnDelay
Lnet/minecraft/world/MobSpawnerLogic;maxSpawnDelay:I
-
spawnCount
private int spawnCount- Mappings:
Namespace Name Mixin selector official i
Lbsw;i:I
intermediary field_9149
Lnet/minecraft/class_1917;field_9149:I
named spawnCount
Lnet/minecraft/world/MobSpawnerLogic;spawnCount:I
-
renderedEntity
- Mappings:
Namespace Name Mixin selector official j
Lbsw;j:Laqv;
intermediary field_9153
Lnet/minecraft/class_1917;field_9153:Lnet/minecraft/class_1297;
named renderedEntity
Lnet/minecraft/world/MobSpawnerLogic;renderedEntity:Lnet/minecraft/entity/Entity;
-
maxNearbyEntities
private int maxNearbyEntities- Mappings:
Namespace Name Mixin selector official k
Lbsw;k:I
intermediary field_9160
Lnet/minecraft/class_1917;field_9160:I
named maxNearbyEntities
Lnet/minecraft/world/MobSpawnerLogic;maxNearbyEntities:I
-
requiredPlayerRange
private int requiredPlayerRange- Mappings:
Namespace Name Mixin selector official l
Lbsw;l:I
intermediary field_9158
Lnet/minecraft/class_1917;field_9158:I
named requiredPlayerRange
Lnet/minecraft/world/MobSpawnerLogic;requiredPlayerRange:I
-
spawnRange
private int spawnRange- Mappings:
Namespace Name Mixin selector official m
Lbsw;m:I
intermediary field_9157
Lnet/minecraft/class_1917;field_9157:I
named spawnRange
Lnet/minecraft/world/MobSpawnerLogic;spawnRange:I
-
random
- Mappings:
Namespace Name Mixin selector official n
Lbsw;n:Ljava/util/Random;
intermediary field_27080
Lnet/minecraft/class_1917;field_27080:Ljava/util/Random;
named random
Lnet/minecraft/world/MobSpawnerLogic;random:Ljava/util/Random;
-
-
Constructor Details
-
MobSpawnerLogic
public MobSpawnerLogic()
-
-
Method Details
-
getEntityId
- Mappings:
Namespace Name Mixin selector official b
Lbsw;b(Lbtv;Lfx;)Lwb;
intermediary method_8281
Lnet/minecraft/class_1917;method_8281(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2960;
named getEntityId
Lnet/minecraft/world/MobSpawnerLogic;getEntityId(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/Identifier;
-
setEntityId
- Mappings:
Namespace Name Mixin selector official a
Lbsw;a(Laqz;)V
intermediary method_8274
Lnet/minecraft/class_1917;method_8274(Lnet/minecraft/class_1299;)V
named setEntityId
Lnet/minecraft/world/MobSpawnerLogic;setEntityId(Lnet/minecraft/entity/EntityType;)V
-
isPlayerInRange
- Mappings:
Namespace Name Mixin selector official c
Lbsw;c(Lbtv;Lfx;)Z
intermediary method_8284
Lnet/minecraft/class_1917;method_8284(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Z
named isPlayerInRange
Lnet/minecraft/world/MobSpawnerLogic;isPlayerInRange(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
clientTick
- Mappings:
Namespace Name Mixin selector official a
Lbsw;a(Lbtv;Lfx;)V
intermediary method_31589
Lnet/minecraft/class_1917;method_31589(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
named clientTick
Lnet/minecraft/world/MobSpawnerLogic;clientTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
serverTick
- Mappings:
Namespace Name Mixin selector official a
Lbsw;a(Laav;Lfx;)V
intermediary method_31588
Lnet/minecraft/class_1917;method_31588(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)V
named serverTick
Lnet/minecraft/world/MobSpawnerLogic;serverTick(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)V
-
updateSpawns
- Mappings:
Namespace Name Mixin selector official d
Lbsw;d(Lbtv;Lfx;)V
intermediary method_8282
Lnet/minecraft/class_1917;method_8282(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V
named updateSpawns
Lnet/minecraft/world/MobSpawnerLogic;updateSpawns(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
fromTag
- Mappings:
Namespace Name Mixin selector official a
Lbsw;a(Lbtv;Lfx;Lmq;)V
intermediary method_8280
Lnet/minecraft/class_1917;method_8280(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2487;)V
named fromTag
Lnet/minecraft/world/MobSpawnerLogic;fromTag(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/nbt/CompoundTag;)V
-
toTag
- Mappings:
Namespace Name Mixin selector official b
Lbsw;b(Lbtv;Lfx;Lmq;)Lmq;
intermediary method_8272
Lnet/minecraft/class_1917;method_8272(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
named toTag
Lnet/minecraft/world/MobSpawnerLogic;toTag(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
getRenderedEntity
- Mappings:
Namespace Name Mixin selector official a
Lbsw;a(Lbtv;)Laqv;
intermediary method_8283
Lnet/minecraft/class_1917;method_8283(Lnet/minecraft/class_1937;)Lnet/minecraft/class_1297;
named getRenderedEntity
Lnet/minecraft/world/MobSpawnerLogic;getRenderedEntity(Lnet/minecraft/world/World;)Lnet/minecraft/entity/Entity;
-
method_8275
- Mappings:
Namespace Name Mixin selector official a
Lbsw;a(Lbtv;I)Z
intermediary method_8275
Lnet/minecraft/class_1917;method_8275(Lnet/minecraft/class_1937;I)Z
named method_8275
Lnet/minecraft/world/MobSpawnerLogic;method_8275(Lnet/minecraft/world/World;I)Z
-
setSpawnEntry
- Mappings:
Namespace Name Mixin selector official a
Lbsw;a(Lbtv;Lfx;Lbul;)V
intermediary method_8277
Lnet/minecraft/class_1917;method_8277(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1952;)V
named setSpawnEntry
Lnet/minecraft/world/MobSpawnerLogic;setSpawnEntry(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/MobSpawnerEntry;)V
-
sendStatus
- Mappings:
Namespace Name Mixin selector official a
Lbsw;a(Lbtv;Lfx;I)V
intermediary method_8273
Lnet/minecraft/class_1917;method_8273(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;I)V
named sendStatus
Lnet/minecraft/world/MobSpawnerLogic;sendStatus(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;I)V
-
method_8278
- Mappings:
Namespace Name Mixin selector official a
Lbsw;a()D
intermediary method_8278
Lnet/minecraft/class_1917;method_8278()D
named method_8278
Lnet/minecraft/world/MobSpawnerLogic;method_8278()D
-
method_8279
- Mappings:
Namespace Name Mixin selector official b
Lbsw;b()D
intermediary method_8279
Lnet/minecraft/class_1917;method_8279()D
named method_8279
Lnet/minecraft/world/MobSpawnerLogic;method_8279()D
-