Package net.minecraft.block.spawner
Class TrialSpawnerData
java.lang.Object
net.minecraft.block.spawner.TrialSpawnerData
- Mappings:
Namespace Name named net/minecraft/block/spawner/TrialSpawnerData
intermediary net/minecraft/class_8966
official dwz
-
Field Summary
Modifier and TypeFieldDescriptionstatic com.mojang.serialization.MapCodec
<TrialSpawnerData> protected long
protected double
private static final int
private static final int
protected double
private static final String
protected long
protected Optional
<RegistryKey<LootTable>> static final String
protected Optional
<MobSpawnerEntry> protected int
-
Constructor Summary
ConstructorDescriptionTrialSpawnerData
(Set<UUID> players, Set<UUID> spawnedMobsAlive, long cooldownEnd, long nextMobSpawnsAt, int totalSpawnedMobs, Optional<MobSpawnerEntry> spawnData, Optional<RegistryKey<LootTable>> rewardLootTable) -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
applyTrialOmen
(PlayerEntity player) boolean
boolean
canSpawnMore
(ServerWorld world, TrialSpawnerConfig config, int additionalPlayers) void
private static Optional
<com.mojang.datafixers.util.Pair<PlayerEntity, RegistryEntry<StatusEffect>>> findPlayerWithOmen
(ServerWorld world, List<UUID> players) int
double
getItemsToDropWhenOminous
(ServerWorld world, TrialSpawnerConfig config, BlockPos pos) double
private static long
getLootSeed
(ServerWorld world, BlockPos pos) protected MobSpawnerEntry
getSpawnData
(TrialSpawnerLogic logic, Random random) getSpawnDataNbt
(TrialSpawnerState state) boolean
hasSpawnData
(TrialSpawnerLogic logic, Random random) boolean
hasSpawnedAllMobs
(TrialSpawnerConfig config, int additionalPlayers) boolean
isCooldownAtRepeating
(ServerWorld world, float float2, int int2) boolean
isCooldownOver
(ServerWorld world) boolean
isCooldownPast
(ServerWorld world, float float2, int int2) void
reset()
void
resetAndClearMobs
(TrialSpawnerLogic logic, ServerWorld world) setDisplayEntity
(TrialSpawnerLogic logic, World world, TrialSpawnerState state) void
setEntityType
(TrialSpawnerLogic logic, Random random, EntityType<?> type) void
updatePlayers
(ServerWorld world, BlockPos pos, TrialSpawnerLogic logic)
-
Field Details
-
SPAWN_DATA_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named SPAWN_DATA_KEY
Lnet/minecraft/block/spawner/TrialSpawnerData;SPAWN_DATA_KEY:Ljava/lang/String;
intermediary field_47369
Lnet/minecraft/class_8966;field_47369:Ljava/lang/String;
official a
Ldwz;a:Ljava/lang/String;
-
NEXT_MOB_SPAWNS_AT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named NEXT_MOB_SPAWNS_AT_KEY
Lnet/minecraft/block/spawner/TrialSpawnerData;NEXT_MOB_SPAWNS_AT_KEY:Ljava/lang/String;
intermediary field_47382
Lnet/minecraft/class_8966;field_47382:Ljava/lang/String;
official m
Ldwz;m:Ljava/lang/String;
-
field_50190
private static final int field_50190- See Also:
- Mappings:
Namespace Name Mixin selector named field_50190
Lnet/minecraft/block/spawner/TrialSpawnerData;field_50190:I
intermediary field_50190
Lnet/minecraft/class_8966;field_50190:I
official n
Ldwz;n:I
-
field_50191
private static final int field_50191- See Also:
- Mappings:
Namespace Name Mixin selector named field_50191
Lnet/minecraft/block/spawner/TrialSpawnerData;field_50191:I
intermediary field_50191
Lnet/minecraft/class_8966;field_50191:I
official o
Ldwz;o:I
-
codec
- Mappings:
Namespace Name Mixin selector named codec
Lnet/minecraft/block/spawner/TrialSpawnerData;codec:Lcom/mojang/serialization/MapCodec;
intermediary field_47370
Lnet/minecraft/class_8966;field_47370:Lcom/mojang/serialization/MapCodec;
official b
Ldwz;b:Lcom/mojang/serialization/MapCodec;
-
players
- Mappings:
Namespace Name Mixin selector named players
Lnet/minecraft/block/spawner/TrialSpawnerData;players:Ljava/util/Set;
intermediary field_47371
Lnet/minecraft/class_8966;field_47371:Ljava/util/Set;
official c
Ldwz;c:Ljava/util/Set;
-
spawnedMobsAlive
- Mappings:
Namespace Name Mixin selector named spawnedMobsAlive
Lnet/minecraft/block/spawner/TrialSpawnerData;spawnedMobsAlive:Ljava/util/Set;
intermediary field_47372
Lnet/minecraft/class_8966;field_47372:Ljava/util/Set;
official d
Ldwz;d:Ljava/util/Set;
-
cooldownEnd
protected long cooldownEnd- Mappings:
Namespace Name Mixin selector named cooldownEnd
Lnet/minecraft/block/spawner/TrialSpawnerData;cooldownEnd:J
intermediary field_47373
Lnet/minecraft/class_8966;field_47373:J
official e
Ldwz;e:J
-
nextMobSpawnsAt
protected long nextMobSpawnsAt- Mappings:
Namespace Name Mixin selector named nextMobSpawnsAt
Lnet/minecraft/block/spawner/TrialSpawnerData;nextMobSpawnsAt:J
intermediary field_47374
Lnet/minecraft/class_8966;field_47374:J
official f
Ldwz;f:J
-
totalSpawnedMobs
protected int totalSpawnedMobs- Mappings:
Namespace Name Mixin selector named totalSpawnedMobs
Lnet/minecraft/block/spawner/TrialSpawnerData;totalSpawnedMobs:I
intermediary field_47375
Lnet/minecraft/class_8966;field_47375:I
official g
Ldwz;g:I
-
spawnData
- Mappings:
Namespace Name Mixin selector named spawnData
Lnet/minecraft/block/spawner/TrialSpawnerData;spawnData:Ljava/util/Optional;
intermediary field_47376
Lnet/minecraft/class_8966;field_47376:Ljava/util/Optional;
official h
Ldwz;h:Ljava/util/Optional;
-
rewardLootTable
- Mappings:
Namespace Name Mixin selector named rewardLootTable
Lnet/minecraft/block/spawner/TrialSpawnerData;rewardLootTable:Ljava/util/Optional;
intermediary field_47377
Lnet/minecraft/class_8966;field_47377:Ljava/util/Optional;
official i
Ldwz;i:Ljava/util/Optional;
-
displayEntity
- Mappings:
Namespace Name Mixin selector named displayEntity
Lnet/minecraft/block/spawner/TrialSpawnerData;displayEntity:Lnet/minecraft/entity/Entity;
intermediary field_47379
Lnet/minecraft/class_8966;field_47379:Lnet/minecraft/class_1297;
official j
Ldwz;j:Lbvj;
-
itemsToDropWhenOminous
- Mappings:
Namespace Name Mixin selector named itemsToDropWhenOminous
Lnet/minecraft/block/spawner/TrialSpawnerData;itemsToDropWhenOminous:Lnet/minecraft/util/collection/DataPool;
intermediary field_50192
Lnet/minecraft/class_8966;field_50192:Lnet/minecraft/class_6005;
official p
Ldwz;p:Lbrq;
-
displayEntityRotation
protected double displayEntityRotation- Mappings:
Namespace Name Mixin selector named displayEntityRotation
Lnet/minecraft/block/spawner/TrialSpawnerData;displayEntityRotation:D
intermediary field_47380
Lnet/minecraft/class_8966;field_47380:D
official k
Ldwz;k:D
-
lastDisplayEntityRotation
protected double lastDisplayEntityRotation- Mappings:
Namespace Name Mixin selector named lastDisplayEntityRotation
Lnet/minecraft/block/spawner/TrialSpawnerData;lastDisplayEntityRotation:D
intermediary field_47381
Lnet/minecraft/class_8966;field_47381:D
official l
Ldwz;l:D
-
-
Constructor Details
-
TrialSpawnerData
public TrialSpawnerData() -
TrialSpawnerData
public TrialSpawnerData(Set<UUID> players, Set<UUID> spawnedMobsAlive, long cooldownEnd, long nextMobSpawnsAt, int totalSpawnedMobs, Optional<MobSpawnerEntry> spawnData, Optional<RegistryKey<LootTable>> rewardLootTable) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/block/spawner/TrialSpawnerData;<init>(Ljava/util/Set;Ljava/util/Set;JJILjava/util/Optional;Ljava/util/Optional;)V
intermediary <init>
Lnet/minecraft/class_8966;<init>(Ljava/util/Set;Ljava/util/Set;JJILjava/util/Optional;Ljava/util/Optional;)V
official <init>
Ldwz;<init>(Ljava/util/Set;Ljava/util/Set;JJILjava/util/Optional;Ljava/util/Optional;)V
-
-
Method Details
-
reset
public void reset()- Mappings:
Namespace Name Mixin selector named reset
Lnet/minecraft/block/spawner/TrialSpawnerData;reset()V
intermediary method_55182
Lnet/minecraft/class_8966;method_55182()V
official a
Ldwz;a()V
-
deactivate
public void deactivate()- Mappings:
Namespace Name Mixin selector named deactivate
Lnet/minecraft/block/spawner/TrialSpawnerData;deactivate()V
intermediary method_61763
Lnet/minecraft/class_8966;method_61763()V
official b
Ldwz;b()V
-
hasSpawnData
- Mappings:
Namespace Name Mixin selector named hasSpawnData
Lnet/minecraft/block/spawner/TrialSpawnerData;hasSpawnData(Lnet/minecraft/block/spawner/TrialSpawnerLogic;Lnet/minecraft/util/math/random/Random;)Z
intermediary method_55197
Lnet/minecraft/class_8966;method_55197(Lnet/minecraft/class_8963;Lnet/minecraft/class_5819;)Z
official a
Ldwz;a(Ldww;Lbam;)Z
-
hasSpawnedAllMobs
- Mappings:
Namespace Name Mixin selector named hasSpawnedAllMobs
Lnet/minecraft/block/spawner/TrialSpawnerData;hasSpawnedAllMobs(Lnet/minecraft/block/spawner/TrialSpawnerConfig;I)Z
intermediary method_55192
Lnet/minecraft/class_8966;method_55192(Lnet/minecraft/class_8965;I)Z
official a
Ldwz;a(Ldwx;I)Z
-
areMobsDead
public boolean areMobsDead()- Mappings:
Namespace Name Mixin selector named areMobsDead
Lnet/minecraft/block/spawner/TrialSpawnerData;areMobsDead()Z
intermediary method_55200
Lnet/minecraft/class_8966;method_55200()Z
official c
Ldwz;c()Z
-
canSpawnMore
- Mappings:
Namespace Name Mixin selector named canSpawnMore
Lnet/minecraft/block/spawner/TrialSpawnerData;canSpawnMore(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/block/spawner/TrialSpawnerConfig;I)Z
intermediary method_55185
Lnet/minecraft/class_8966;method_55185(Lnet/minecraft/class_3218;Lnet/minecraft/class_8965;I)Z
official a
Ldwz;a(Lash;Ldwx;I)Z
-
getAdditionalPlayers
- Mappings:
Namespace Name Mixin selector named getAdditionalPlayers
Lnet/minecraft/block/spawner/TrialSpawnerData;getAdditionalPlayers(Lnet/minecraft/util/math/BlockPos;)I
intermediary method_55195
Lnet/minecraft/class_8966;method_55195(Lnet/minecraft/class_2338;)I
official a
Ldwz;a(Ljh;)I
-
updatePlayers
- Mappings:
Namespace Name Mixin selector named updatePlayers
Lnet/minecraft/block/spawner/TrialSpawnerData;updatePlayers(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/spawner/TrialSpawnerLogic;)V
intermediary method_55186
Lnet/minecraft/class_8966;method_55186(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_8963;)V
official a
Ldwz;a(Lash;Ljh;Ldww;)V
-
findPlayerWithOmen
private static Optional<com.mojang.datafixers.util.Pair<PlayerEntity,RegistryEntry<StatusEffect>>> findPlayerWithOmen(ServerWorld world, List<UUID> players) - Mappings:
Namespace Name Mixin selector named findPlayerWithOmen
Lnet/minecraft/block/spawner/TrialSpawnerData;findPlayerWithOmen(Lnet/minecraft/server/world/ServerWorld;Ljava/util/List;)Ljava/util/Optional;
intermediary method_60789
Lnet/minecraft/class_8966;method_60789(Lnet/minecraft/class_3218;Ljava/util/List;)Ljava/util/Optional;
official a
Ldwz;a(Lash;Ljava/util/List;)Ljava/util/Optional;
-
resetAndClearMobs
- Mappings:
Namespace Name Mixin selector named resetAndClearMobs
Lnet/minecraft/block/spawner/TrialSpawnerData;resetAndClearMobs(Lnet/minecraft/block/spawner/TrialSpawnerLogic;Lnet/minecraft/server/world/ServerWorld;)V
intermediary method_58717
Lnet/minecraft/class_8966;method_58717(Lnet/minecraft/class_8963;Lnet/minecraft/class_3218;)V
official a
Ldwz;a(Ldww;Lash;)V
-
applyTrialOmen
- Mappings:
Namespace Name Mixin selector named applyTrialOmen
Lnet/minecraft/block/spawner/TrialSpawnerData;applyTrialOmen(Lnet/minecraft/entity/player/PlayerEntity;)V
intermediary method_58716
Lnet/minecraft/class_8966;method_58716(Lnet/minecraft/class_1657;)V
official a
Ldwz;a(Lcpw;)V
-
isCooldownPast
- Mappings:
Namespace Name Mixin selector named isCooldownPast
Lnet/minecraft/block/spawner/TrialSpawnerData;isCooldownPast(Lnet/minecraft/server/world/ServerWorld;FI)Z
intermediary method_55184
Lnet/minecraft/class_8966;method_55184(Lnet/minecraft/class_3218;FI)Z
official a
Ldwz;a(Lash;FI)Z
-
isCooldownAtRepeating
- Mappings:
Namespace Name Mixin selector named isCooldownAtRepeating
Lnet/minecraft/block/spawner/TrialSpawnerData;isCooldownAtRepeating(Lnet/minecraft/server/world/ServerWorld;FI)Z
intermediary method_55198
Lnet/minecraft/class_8966;method_55198(Lnet/minecraft/class_3218;FI)Z
official b
Ldwz;b(Lash;FI)Z
-
isCooldownOver
- Mappings:
Namespace Name Mixin selector named isCooldownOver
Lnet/minecraft/block/spawner/TrialSpawnerData;isCooldownOver(Lnet/minecraft/server/world/ServerWorld;)Z
intermediary method_55183
Lnet/minecraft/class_8966;method_55183(Lnet/minecraft/class_3218;)Z
official a
Ldwz;a(Lash;)Z
-
setEntityType
- Mappings:
Namespace Name Mixin selector named setEntityType
Lnet/minecraft/block/spawner/TrialSpawnerData;setEntityType(Lnet/minecraft/block/spawner/TrialSpawnerLogic;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/entity/EntityType;)V
intermediary method_55189
Lnet/minecraft/class_8966;method_55189(Lnet/minecraft/class_8963;Lnet/minecraft/class_5819;Lnet/minecraft/class_1299;)V
official a
Ldwz;a(Ldww;Lbam;Lbvq;)V
-
getSpawnData
- Mappings:
Namespace Name Mixin selector named getSpawnData
Lnet/minecraft/block/spawner/TrialSpawnerData;getSpawnData(Lnet/minecraft/block/spawner/TrialSpawnerLogic;Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/block/spawner/MobSpawnerEntry;
intermediary method_55188
Lnet/minecraft/class_8966;method_55188(Lnet/minecraft/class_8963;Lnet/minecraft/class_5819;)Lnet/minecraft/class_1952;
official b
Ldwz;b(Ldww;Lbam;)Ldib;
-
setDisplayEntity
@Nullable public @Nullable Entity setDisplayEntity(TrialSpawnerLogic logic, World world, TrialSpawnerState state) - Mappings:
Namespace Name Mixin selector named setDisplayEntity
Lnet/minecraft/block/spawner/TrialSpawnerData;setDisplayEntity(Lnet/minecraft/block/spawner/TrialSpawnerLogic;Lnet/minecraft/world/World;Lnet/minecraft/block/enums/TrialSpawnerState;)Lnet/minecraft/entity/Entity;
intermediary method_55190
Lnet/minecraft/class_8966;method_55190(Lnet/minecraft/class_8963;Lnet/minecraft/class_1937;Lnet/minecraft/class_8967;)Lnet/minecraft/class_1297;
official a
Ldwz;a(Ldww;Ldhh;Ldxa;)Lbvj;
-
getSpawnDataNbt
- Mappings:
Namespace Name Mixin selector named getSpawnDataNbt
Lnet/minecraft/block/spawner/TrialSpawnerData;getSpawnDataNbt(Lnet/minecraft/block/enums/TrialSpawnerState;)Lnet/minecraft/nbt/NbtCompound;
intermediary method_55194
Lnet/minecraft/class_8966;method_55194(Lnet/minecraft/class_8967;)Lnet/minecraft/class_2487;
official a
Ldwz;a(Ldxa;)Lux;
-
getDisplayEntityRotation
public double getDisplayEntityRotation()- Mappings:
Namespace Name Mixin selector named getDisplayEntityRotation
Lnet/minecraft/block/spawner/TrialSpawnerData;getDisplayEntityRotation()D
intermediary method_55202
Lnet/minecraft/class_8966;method_55202()D
official d
Ldwz;d()D
-
getLastDisplayEntityRotation
public double getLastDisplayEntityRotation()- Mappings:
Namespace Name Mixin selector named getLastDisplayEntityRotation
Lnet/minecraft/block/spawner/TrialSpawnerData;getLastDisplayEntityRotation()D
intermediary method_55204
Lnet/minecraft/class_8966;method_55204()D
official e
Ldwz;e()D
-
getItemsToDropWhenOminous
DataPool<ItemStack> getItemsToDropWhenOminous(ServerWorld world, TrialSpawnerConfig config, BlockPos pos) - Mappings:
Namespace Name Mixin selector named getItemsToDropWhenOminous
Lnet/minecraft/block/spawner/TrialSpawnerData;getItemsToDropWhenOminous(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/block/spawner/TrialSpawnerConfig;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/collection/DataPool;
intermediary method_58714
Lnet/minecraft/class_8966;method_58714(Lnet/minecraft/class_3218;Lnet/minecraft/class_8965;Lnet/minecraft/class_2338;)Lnet/minecraft/class_6005;
official a
Ldwz;a(Lash;Ldwx;Ljh;)Lbrq;
-
getLootSeed
- Mappings:
Namespace Name Mixin selector named getLootSeed
Lnet/minecraft/block/spawner/TrialSpawnerData;getLootSeed(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)J
intermediary method_58715
Lnet/minecraft/class_8966;method_58715(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)J
official a
Ldwz;a(Lash;Ljh;)J
-