Package net.minecraft.block.spawner
Class MobSpawnerLogic
java.lang.Object
net.minecraft.block.spawner.MobSpawnerLogic
- Mappings:
- Namespace - Name - named - net/minecraft/block/spawner/MobSpawnerLogic- intermediary - net/minecraft/class_1917- official - dfk
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate doubleprivate static final Loggerprivate intprivate intprivate intprivate intprivate doublestatic final Stringprivate intprivate intprivate @Nullable MobSpawnerEntryprivate DataPool<MobSpawnerEntry> private int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclientTick(World world, BlockPos pos) doublegetRenderedEntity(World world, BlockPos pos) doubleprivate MobSpawnerEntrygetSpawnEntry(@Nullable World world, Random random, BlockPos pos) booleanhandleStatus(World world, int status) private booleanisPlayerInRange(World world, BlockPos pos) voidreadNbt(@Nullable World world, BlockPos pos, NbtCompound nbt) abstract voidsendStatus(World world, BlockPos pos, int status) voidserverTick(ServerWorld world, BlockPos pos) voidsetEntityId(EntityType<?> type, @Nullable World world, Random random, BlockPos pos) protected voidsetSpawnEntry(@Nullable World world, BlockPos pos, MobSpawnerEntry spawnEntry) private voidupdateSpawns(World world, BlockPos pos) writeNbt(NbtCompound nbt) 
- 
Field Details- 
SPAWN_DATA_KEY- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - SPAWN_DATA_KEY- Lnet/minecraft/block/spawner/MobSpawnerLogic;SPAWN_DATA_KEY:Ljava/lang/String;- intermediary - field_40877- Lnet/minecraft/class_1917;field_40877:Ljava/lang/String;- official - b- Ldfk;b:Ljava/lang/String;
 
- 
LOGGER- Mappings:
- Namespace - Name - Mixin selector - named - LOGGER- Lnet/minecraft/block/spawner/MobSpawnerLogic;LOGGER:Lorg/slf4j/Logger;- intermediary - field_9156- Lnet/minecraft/class_1917;field_9156:Lorg/slf4j/Logger;- official - a- Ldfk;a:Lorg/slf4j/Logger;
 
- 
field_30951private static final int field_30951- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_30951- Lnet/minecraft/block/spawner/MobSpawnerLogic;field_30951:I- intermediary - field_30951- Lnet/minecraft/class_1917;field_30951:I- official - c- Ldfk;c:I
 
- 
spawnDelayprivate int spawnDelay- Mappings:
- Namespace - Name - Mixin selector - named - spawnDelay- Lnet/minecraft/block/spawner/MobSpawnerLogic;spawnDelay:I- intermediary - field_9154- Lnet/minecraft/class_1917;field_9154:I- official - d- Ldfk;d:I
 
- 
spawnPotentials- Mappings:
- Namespace - Name - Mixin selector - named - spawnPotentials- Lnet/minecraft/block/spawner/MobSpawnerLogic;spawnPotentials:Lnet/minecraft/util/collection/DataPool;- intermediary - field_9152- Lnet/minecraft/class_1917;field_9152:Lnet/minecraft/class_6005;- official - e- Ldfk;e:Lbqt;
 
- 
spawnEntry- Mappings:
- Namespace - Name - Mixin selector - named - spawnEntry- Lnet/minecraft/block/spawner/MobSpawnerLogic;spawnEntry:Lnet/minecraft/block/spawner/MobSpawnerEntry;- intermediary - field_9155- Lnet/minecraft/class_1917;field_9155:Lnet/minecraft/class_1952;- official - f- Ldfk;f:Ldhd;
 
- 
rotationprivate double rotation- Mappings:
- Namespace - Name - Mixin selector - named - rotation- Lnet/minecraft/block/spawner/MobSpawnerLogic;rotation:D- intermediary - field_9161- Lnet/minecraft/class_1917;field_9161:D- official - g- Ldfk;g:D
 
- 
lastRotationprivate double lastRotation- Mappings:
- Namespace - Name - Mixin selector - named - lastRotation- Lnet/minecraft/block/spawner/MobSpawnerLogic;lastRotation:D- intermediary - field_9159- Lnet/minecraft/class_1917;field_9159:D- official - h- Ldfk;h:D
 
- 
minSpawnDelayprivate int minSpawnDelay- Mappings:
- Namespace - Name - Mixin selector - named - minSpawnDelay- Lnet/minecraft/block/spawner/MobSpawnerLogic;minSpawnDelay:I- intermediary - field_9151- Lnet/minecraft/class_1917;field_9151:I- official - i- Ldfk;i:I
 
- 
maxSpawnDelayprivate int maxSpawnDelay- Mappings:
- Namespace - Name - Mixin selector - named - maxSpawnDelay- Lnet/minecraft/block/spawner/MobSpawnerLogic;maxSpawnDelay:I- intermediary - field_9150- Lnet/minecraft/class_1917;field_9150:I- official - j- Ldfk;j:I
 
- 
spawnCountprivate int spawnCount- Mappings:
- Namespace - Name - Mixin selector - named - spawnCount- Lnet/minecraft/block/spawner/MobSpawnerLogic;spawnCount:I- intermediary - field_9149- Lnet/minecraft/class_1917;field_9149:I- official - k- Ldfk;k:I
 
- 
renderedEntity- Mappings:
- Namespace - Name - Mixin selector - named - renderedEntity- Lnet/minecraft/block/spawner/MobSpawnerLogic;renderedEntity:Lnet/minecraft/entity/Entity;- intermediary - field_9153- Lnet/minecraft/class_1917;field_9153:Lnet/minecraft/class_1297;- official - l- Ldfk;l:Lbum;
 
- 
maxNearbyEntitiesprivate int maxNearbyEntities- Mappings:
- Namespace - Name - Mixin selector - named - maxNearbyEntities- Lnet/minecraft/block/spawner/MobSpawnerLogic;maxNearbyEntities:I- intermediary - field_9160- Lnet/minecraft/class_1917;field_9160:I- official - m- Ldfk;m:I
 
- 
requiredPlayerRangeprivate int requiredPlayerRange- Mappings:
- Namespace - Name - Mixin selector - named - requiredPlayerRange- Lnet/minecraft/block/spawner/MobSpawnerLogic;requiredPlayerRange:I- intermediary - field_9158- Lnet/minecraft/class_1917;field_9158:I- official - n- Ldfk;n:I
 
- 
spawnRangeprivate int spawnRange- Mappings:
- Namespace - Name - Mixin selector - named - spawnRange- Lnet/minecraft/block/spawner/MobSpawnerLogic;spawnRange:I- intermediary - field_9157- Lnet/minecraft/class_1917;field_9157:I- official - o- Ldfk;o:I
 
 
- 
- 
Constructor Details- 
MobSpawnerLogicpublic MobSpawnerLogic()
 
- 
- 
Method Details- 
setEntityIdpublic void setEntityId(EntityType<?> type, @Nullable @Nullable World world, Random random, BlockPos pos) - Mappings:
- Namespace - Name - Mixin selector - named - setEntityId- Lnet/minecraft/block/spawner/MobSpawnerLogic;setEntityId(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;)V- intermediary - method_8274- Lnet/minecraft/class_1917;method_8274(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;)V- official - a- Ldfk;a(Lbut;Ldgj;Lazh;Lji;)V
 
- 
isPlayerInRange- Mappings:
- Namespace - Name - Mixin selector - named - isPlayerInRange- Lnet/minecraft/block/spawner/MobSpawnerLogic;isPlayerInRange(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z- intermediary - method_8284- Lnet/minecraft/class_1917;method_8284(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Z- official - c- Ldfk;c(Ldgj;Lji;)Z
 
- 
clientTick- Mappings:
- Namespace - Name - Mixin selector - named - clientTick- Lnet/minecraft/block/spawner/MobSpawnerLogic;clientTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V- intermediary - method_31589- Lnet/minecraft/class_1917;method_31589(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V- official - a- Ldfk;a(Ldgj;Lji;)V
 
- 
serverTick- Mappings:
- Namespace - Name - Mixin selector - named - serverTick- Lnet/minecraft/block/spawner/MobSpawnerLogic;serverTick(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)V- intermediary - method_31588- Lnet/minecraft/class_1917;method_31588(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)V- official - a- Ldfk;a(Lard;Lji;)V
 
- 
updateSpawns- Mappings:
- Namespace - Name - Mixin selector - named - updateSpawns- Lnet/minecraft/block/spawner/MobSpawnerLogic;updateSpawns(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V- intermediary - method_8282- Lnet/minecraft/class_1917;method_8282(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)V- official - d- Ldfk;d(Ldgj;Lji;)V
 
- 
readNbt- Mappings:
- Namespace - Name - Mixin selector - named - readNbt- Lnet/minecraft/block/spawner/MobSpawnerLogic;readNbt(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/nbt/NbtCompound;)V- intermediary - method_8280- Lnet/minecraft/class_1917;method_8280(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2487;)V- official - a- Ldfk;a(Ldgj;Lji;Ltq;)V
 
- 
writeNbt- Mappings:
- Namespace - Name - Mixin selector - named - writeNbt- Lnet/minecraft/block/spawner/MobSpawnerLogic;writeNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;- intermediary - method_8272- Lnet/minecraft/class_1917;method_8272(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;- official - a- Ldfk;a(Ltq;)Ltq;
 
- 
getRenderedEntity- Mappings:
- Namespace - Name - Mixin selector - named - getRenderedEntity- Lnet/minecraft/block/spawner/MobSpawnerLogic;getRenderedEntity(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/Entity;- intermediary - method_8283- Lnet/minecraft/class_1917;method_8283(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1297;- official - b- Ldfk;b(Ldgj;Lji;)Lbum;
 
- 
handleStatus- Mappings:
- Namespace - Name - Mixin selector - named - handleStatus- Lnet/minecraft/block/spawner/MobSpawnerLogic;handleStatus(Lnet/minecraft/world/World;I)Z- intermediary - method_8275- Lnet/minecraft/class_1917;method_8275(Lnet/minecraft/class_1937;I)Z- official - a- Ldfk;a(Ldgj;I)Z
 
- 
setSpawnEntryprotected void setSpawnEntry(@Nullable @Nullable World world, BlockPos pos, MobSpawnerEntry spawnEntry) - Mappings:
- Namespace - Name - Mixin selector - named - setSpawnEntry- Lnet/minecraft/block/spawner/MobSpawnerLogic;setSpawnEntry(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/spawner/MobSpawnerEntry;)V- intermediary - method_8277- Lnet/minecraft/class_1917;method_8277(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1952;)V- official - a- Ldfk;a(Ldgj;Lji;Ldhd;)V
 
- 
getSpawnEntry- Mappings:
- Namespace - Name - Mixin selector - named - getSpawnEntry- Lnet/minecraft/block/spawner/MobSpawnerLogic;getSpawnEntry(Lnet/minecraft/world/World;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/spawner/MobSpawnerEntry;- intermediary - method_46404- Lnet/minecraft/class_1917;method_46404(Lnet/minecraft/class_1937;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1952;- official - a- Ldfk;a(Ldgj;Lazh;Lji;)Ldhd;
 
- 
sendStatus- Mappings:
- Namespace - Name - Mixin selector - named - sendStatus- Lnet/minecraft/block/spawner/MobSpawnerLogic;sendStatus(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;I)V- intermediary - method_8273- Lnet/minecraft/class_1917;method_8273(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;I)V- official - a- Ldfk;a(Ldgj;Lji;I)V
 
- 
getRotationpublic double getRotation()- Mappings:
- Namespace - Name - Mixin selector - named - getRotation- Lnet/minecraft/block/spawner/MobSpawnerLogic;getRotation()D- intermediary - method_8278- Lnet/minecraft/class_1917;method_8278()D- official - a- Ldfk;a()D
 
- 
getLastRotationpublic double getLastRotation()- Mappings:
- Namespace - Name - Mixin selector - named - getLastRotation- Lnet/minecraft/block/spawner/MobSpawnerLogic;getLastRotation()D- intermediary - method_8279- Lnet/minecraft/class_1917;method_8279()D- official - b- Ldfk;b()D
 
 
-