Package net.minecraft.world
Class MobSpawnerLogic
java.lang.Object
net.minecraft.world.MobSpawnerLogic
- Mappings:
Namespace Name official colintermediary net/minecraft/class_1917named net/minecraft/world/MobSpawnerLogic
-
Field Summary
FieldsModifier 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclientTick(World world, BlockPos pos) doublegetRenderedEntity(World world, Random random, 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 official bLcol;b:Ljava/lang/String;intermediary field_40877Lnet/minecraft/class_1917;field_40877:Ljava/lang/String;named SPAWN_DATA_KEYLnet/minecraft/world/MobSpawnerLogic;SPAWN_DATA_KEY:Ljava/lang/String;
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLcol;a:Lorg/slf4j/Logger;intermediary field_9156Lnet/minecraft/class_1917;field_9156:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/world/MobSpawnerLogic;LOGGER:Lorg/slf4j/Logger;
-
field_30951
private static final int field_30951- See Also:
- Mappings:
Namespace Name Mixin selector official cLcol;c:Iintermediary field_30951Lnet/minecraft/class_1917;field_30951:Inamed field_30951Lnet/minecraft/world/MobSpawnerLogic;field_30951:I
-
spawnDelay
private int spawnDelay- Mappings:
Namespace Name Mixin selector official dLcol;d:Iintermediary field_9154Lnet/minecraft/class_1917;field_9154:Inamed spawnDelayLnet/minecraft/world/MobSpawnerLogic;spawnDelay:I
-
spawnPotentials
- Mappings:
Namespace Name Mixin selector official eLcol;e:Lbey;intermediary field_9152Lnet/minecraft/class_1917;field_9152:Lnet/minecraft/class_6005;named spawnPotentialsLnet/minecraft/world/MobSpawnerLogic;spawnPotentials:Lnet/minecraft/util/collection/DataPool;
-
spawnEntry
- Mappings:
Namespace Name Mixin selector official fLcol;f:Lcqb;intermediary field_9155Lnet/minecraft/class_1917;field_9155:Lnet/minecraft/class_1952;named spawnEntryLnet/minecraft/world/MobSpawnerLogic;spawnEntry:Lnet/minecraft/world/MobSpawnerEntry;
-
rotation
private double rotation- Mappings:
Namespace Name Mixin selector official gLcol;g:Dintermediary field_9161Lnet/minecraft/class_1917;field_9161:Dnamed rotationLnet/minecraft/world/MobSpawnerLogic;rotation:D
-
lastRotation
private double lastRotation- Mappings:
Namespace Name Mixin selector official hLcol;h:Dintermediary field_9159Lnet/minecraft/class_1917;field_9159:Dnamed lastRotationLnet/minecraft/world/MobSpawnerLogic;lastRotation:D
-
minSpawnDelay
private int minSpawnDelay- Mappings:
Namespace Name Mixin selector official iLcol;i:Iintermediary field_9151Lnet/minecraft/class_1917;field_9151:Inamed minSpawnDelayLnet/minecraft/world/MobSpawnerLogic;minSpawnDelay:I
-
maxSpawnDelay
private int maxSpawnDelay- Mappings:
Namespace Name Mixin selector official jLcol;j:Iintermediary field_9150Lnet/minecraft/class_1917;field_9150:Inamed maxSpawnDelayLnet/minecraft/world/MobSpawnerLogic;maxSpawnDelay:I
-
spawnCount
private int spawnCount- Mappings:
Namespace Name Mixin selector official kLcol;k:Iintermediary field_9149Lnet/minecraft/class_1917;field_9149:Inamed spawnCountLnet/minecraft/world/MobSpawnerLogic;spawnCount:I
-
renderedEntity
- Mappings:
Namespace Name Mixin selector official lLcol;l:Lbig;intermediary field_9153Lnet/minecraft/class_1917;field_9153:Lnet/minecraft/class_1297;named renderedEntityLnet/minecraft/world/MobSpawnerLogic;renderedEntity:Lnet/minecraft/entity/Entity;
-
maxNearbyEntities
private int maxNearbyEntities- Mappings:
Namespace Name Mixin selector official mLcol;m:Iintermediary field_9160Lnet/minecraft/class_1917;field_9160:Inamed maxNearbyEntitiesLnet/minecraft/world/MobSpawnerLogic;maxNearbyEntities:I
-
requiredPlayerRange
private int requiredPlayerRange- Mappings:
Namespace Name Mixin selector official nLcol;n:Iintermediary field_9158Lnet/minecraft/class_1917;field_9158:Inamed requiredPlayerRangeLnet/minecraft/world/MobSpawnerLogic;requiredPlayerRange:I
-
spawnRange
private int spawnRange- Mappings:
Namespace Name Mixin selector official oLcol;o:Iintermediary field_9157Lnet/minecraft/class_1917;field_9157:Inamed spawnRangeLnet/minecraft/world/MobSpawnerLogic;spawnRange:I
-
-
Constructor Details
-
MobSpawnerLogic
public MobSpawnerLogic()
-
-
Method Details
-
setEntityId
public void setEntityId(EntityType<?> type, @Nullable @Nullable World world, Random random, BlockPos pos) - Mappings:
Namespace Name Mixin selector official aLcol;a(Lbik;Lcpk;Lart;Lgv;)Vintermediary method_8274Lnet/minecraft/class_1917;method_8274(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;)Vnamed setEntityIdLnet/minecraft/world/MobSpawnerLogic;setEntityId(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;)V
-
isPlayerInRange
- Mappings:
Namespace Name Mixin selector official bLcol;b(Lcpk;Lgv;)Zintermediary method_8284Lnet/minecraft/class_1917;method_8284(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Znamed isPlayerInRangeLnet/minecraft/world/MobSpawnerLogic;isPlayerInRange(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
-
clientTick
- Mappings:
Namespace Name Mixin selector official aLcol;a(Lcpk;Lgv;)Vintermediary method_31589Lnet/minecraft/class_1917;method_31589(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vnamed clientTickLnet/minecraft/world/MobSpawnerLogic;clientTick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
serverTick
- Mappings:
Namespace Name Mixin selector official aLcol;a(Laki;Lgv;)Vintermediary method_31588Lnet/minecraft/class_1917;method_31588(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Vnamed serverTickLnet/minecraft/world/MobSpawnerLogic;serverTick(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)V
-
updateSpawns
- Mappings:
Namespace Name Mixin selector official cLcol;c(Lcpk;Lgv;)Vintermediary method_8282Lnet/minecraft/class_1917;method_8282(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;)Vnamed updateSpawnsLnet/minecraft/world/MobSpawnerLogic;updateSpawns(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
readNbt
- Mappings:
Namespace Name Mixin selector official aLcol;a(Lcpk;Lgv;Lqs;)Vintermediary method_8280Lnet/minecraft/class_1917;method_8280(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2487;)Vnamed readNbtLnet/minecraft/world/MobSpawnerLogic;readNbt(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/nbt/NbtCompound;)V
-
writeNbt
- Mappings:
Namespace Name Mixin selector official aLcol;a(Lqs;)Lqs;intermediary method_8272Lnet/minecraft/class_1917;method_8272(Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;named writeNbtLnet/minecraft/world/MobSpawnerLogic;writeNbt(Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;
-
getRenderedEntity
- Mappings:
Namespace Name Mixin selector official aLcol;a(Lcpk;Lart;Lgv;)Lbig;intermediary method_8283Lnet/minecraft/class_1917;method_8283(Lnet/minecraft/class_1937;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1297;named getRenderedEntityLnet/minecraft/world/MobSpawnerLogic;getRenderedEntity(Lnet/minecraft/world/World;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/Entity;
-
handleStatus
- Mappings:
Namespace Name Mixin selector official aLcol;a(Lcpk;I)Zintermediary method_8275Lnet/minecraft/class_1917;method_8275(Lnet/minecraft/class_1937;I)Znamed handleStatusLnet/minecraft/world/MobSpawnerLogic;handleStatus(Lnet/minecraft/world/World;I)Z
-
setSpawnEntry
protected void setSpawnEntry(@Nullable @Nullable World world, BlockPos pos, MobSpawnerEntry spawnEntry) - Mappings:
Namespace Name Mixin selector official aLcol;a(Lcpk;Lgv;Lcqb;)Vintermediary method_8277Lnet/minecraft/class_1917;method_8277(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1952;)Vnamed setSpawnEntryLnet/minecraft/world/MobSpawnerLogic;setSpawnEntry(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/MobSpawnerEntry;)V
-
getSpawnEntry
- Mappings:
Namespace Name Mixin selector official bLcol;b(Lcpk;Lart;Lgv;)Lcqb;intermediary method_46404Lnet/minecraft/class_1917;method_46404(Lnet/minecraft/class_1937;Lnet/minecraft/class_5819;Lnet/minecraft/class_2338;)Lnet/minecraft/class_1952;named getSpawnEntryLnet/minecraft/world/MobSpawnerLogic;getSpawnEntry(Lnet/minecraft/world/World;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/world/MobSpawnerEntry;
-
sendStatus
- Mappings:
Namespace Name Mixin selector official aLcol;a(Lcpk;Lgv;I)Vintermediary method_8273Lnet/minecraft/class_1917;method_8273(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;I)Vnamed sendStatusLnet/minecraft/world/MobSpawnerLogic;sendStatus(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;I)V
-
getRotation
public double getRotation()- Mappings:
Namespace Name Mixin selector official aLcol;a()Dintermediary method_8278Lnet/minecraft/class_1917;method_8278()Dnamed getRotationLnet/minecraft/world/MobSpawnerLogic;getRotation()D
-
getLastRotation
public double getLastRotation()- Mappings:
Namespace Name Mixin selector official bLcol;b()Dintermediary method_8279Lnet/minecraft/class_1917;method_8279()Dnamed getLastRotationLnet/minecraft/world/MobSpawnerLogic;getLastRotation()D
-