Class TrialSpawnerData

java.lang.Object
net.minecraft.block.spawner.TrialSpawnerData

public class TrialSpawnerData extends Object
Mappings:
Namespace Name
official dit
intermediary net/minecraft/class_8966
named net/minecraft/block/spawner/TrialSpawnerData
  • Field Details

    • SPAWN_DATA_KEY

      public static final String SPAWN_DATA_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Ldit;a:Ljava/lang/String;
      intermediary field_47369 Lnet/minecraft/class_8966;field_47369:Ljava/lang/String;
      named SPAWN_DATA_KEY Lnet/minecraft/block/spawner/TrialSpawnerData;SPAWN_DATA_KEY:Ljava/lang/String;
    • NEXT_MOB_SPAWNS_AT_KEY

      private static final String NEXT_MOB_SPAWNS_AT_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official n Ldit;n:Ljava/lang/String;
      intermediary field_47382 Lnet/minecraft/class_8966;field_47382:Ljava/lang/String;
      named NEXT_MOB_SPAWNS_AT_KEY Lnet/minecraft/block/spawner/TrialSpawnerData;NEXT_MOB_SPAWNS_AT_KEY:Ljava/lang/String;
    • codec

      public static com.mojang.serialization.MapCodec<TrialSpawnerData> codec
      Mappings:
      Namespace Name Mixin selector
      official b Ldit;b:Lcom/mojang/serialization/MapCodec;
      intermediary field_47370 Lnet/minecraft/class_8966;field_47370:Lcom/mojang/serialization/MapCodec;
      named codec Lnet/minecraft/block/spawner/TrialSpawnerData;codec:Lcom/mojang/serialization/MapCodec;
    • players

      protected final Set<UUID> players
      Mappings:
      Namespace Name Mixin selector
      official c Ldit;c:Ljava/util/Set;
      intermediary field_47371 Lnet/minecraft/class_8966;field_47371:Ljava/util/Set;
      named players Lnet/minecraft/block/spawner/TrialSpawnerData;players:Ljava/util/Set;
    • spawnedMobsAlive

      protected final Set<UUID> spawnedMobsAlive
      Mappings:
      Namespace Name Mixin selector
      official d Ldit;d:Ljava/util/Set;
      intermediary field_47372 Lnet/minecraft/class_8966;field_47372:Ljava/util/Set;
      named spawnedMobsAlive Lnet/minecraft/block/spawner/TrialSpawnerData;spawnedMobsAlive:Ljava/util/Set;
    • cooldownEnd

      protected long cooldownEnd
      Mappings:
      Namespace Name Mixin selector
      official e Ldit;e:J
      intermediary field_47373 Lnet/minecraft/class_8966;field_47373:J
      named cooldownEnd Lnet/minecraft/block/spawner/TrialSpawnerData;cooldownEnd:J
    • nextMobSpawnsAt

      protected long nextMobSpawnsAt
      Mappings:
      Namespace Name Mixin selector
      official f Ldit;f:J
      intermediary field_47374 Lnet/minecraft/class_8966;field_47374:J
      named nextMobSpawnsAt Lnet/minecraft/block/spawner/TrialSpawnerData;nextMobSpawnsAt:J
    • totalSpawnedMobs

      protected int totalSpawnedMobs
      Mappings:
      Namespace Name Mixin selector
      official g Ldit;g:I
      intermediary field_47375 Lnet/minecraft/class_8966;field_47375:I
      named totalSpawnedMobs Lnet/minecraft/block/spawner/TrialSpawnerData;totalSpawnedMobs:I
    • spawnData

      protected Optional<MobSpawnerEntry> spawnData
      Mappings:
      Namespace Name Mixin selector
      official h Ldit;h:Ljava/util/Optional;
      intermediary field_47376 Lnet/minecraft/class_8966;field_47376:Ljava/util/Optional;
      named spawnData Lnet/minecraft/block/spawner/TrialSpawnerData;spawnData:Ljava/util/Optional;
    • rewardLootTable

      protected Optional<Identifier> rewardLootTable
      Mappings:
      Namespace Name Mixin selector
      official i Ldit;i:Ljava/util/Optional;
      intermediary field_47377 Lnet/minecraft/class_8966;field_47377:Ljava/util/Optional;
      named rewardLootTable Lnet/minecraft/block/spawner/TrialSpawnerData;rewardLootTable:Ljava/util/Optional;
    • spawnDataPool

      protected DataPool<MobSpawnerEntry> spawnDataPool
      Mappings:
      Namespace Name Mixin selector
      official j Ldit;j:Lbil;
      intermediary field_47378 Lnet/minecraft/class_8966;field_47378:Lnet/minecraft/class_6005;
      named spawnDataPool Lnet/minecraft/block/spawner/TrialSpawnerData;spawnDataPool:Lnet/minecraft/util/collection/DataPool;
    • displayEntity

      @Nullable protected @Nullable Entity displayEntity
      Mappings:
      Namespace Name Mixin selector
      official k Ldit;k:Lblv;
      intermediary field_47379 Lnet/minecraft/class_8966;field_47379:Lnet/minecraft/class_1297;
      named displayEntity Lnet/minecraft/block/spawner/TrialSpawnerData;displayEntity:Lnet/minecraft/entity/Entity;
    • displayEntityRotation

      protected double displayEntityRotation
      Mappings:
      Namespace Name Mixin selector
      official l Ldit;l:D
      intermediary field_47380 Lnet/minecraft/class_8966;field_47380:D
      named displayEntityRotation Lnet/minecraft/block/spawner/TrialSpawnerData;displayEntityRotation:D
    • lastDisplayEntityRotation

      protected double lastDisplayEntityRotation
      Mappings:
      Namespace Name Mixin selector
      official m Ldit;m:D
      intermediary field_47381 Lnet/minecraft/class_8966;field_47381:D
      named lastDisplayEntityRotation Lnet/minecraft/block/spawner/TrialSpawnerData;lastDisplayEntityRotation: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<Identifier> rewardLootTable)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldit;<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
      named <init> Lnet/minecraft/block/spawner/TrialSpawnerData;<init>(Ljava/util/Set;Ljava/util/Set;JJILjava/util/Optional;Ljava/util/Optional;)V
  • Method Details

    • populateSpawnDataPool

      public void populateSpawnDataPool(TrialSpawnerConfig config)
      Mappings:
      Namespace Name Mixin selector
      official a Ldit;a(Ldis;)V
      intermediary method_55191 Lnet/minecraft/class_8966;method_55191(Lnet/minecraft/class_8965;)V
      named populateSpawnDataPool Lnet/minecraft/block/spawner/TrialSpawnerData;populateSpawnDataPool(Lnet/minecraft/block/spawner/TrialSpawnerConfig;)V
    • reset

      public void reset()
      Mappings:
      Namespace Name Mixin selector
      official a Ldit;a()V
      intermediary method_55182 Lnet/minecraft/class_8966;method_55182()V
      named reset Lnet/minecraft/block/spawner/TrialSpawnerData;reset()V
    • hasSpawnData

      public boolean hasSpawnData()
      Mappings:
      Namespace Name Mixin selector
      official b Ldit;b()Z
      intermediary method_55197 Lnet/minecraft/class_8966;method_55197()Z
      named hasSpawnData Lnet/minecraft/block/spawner/TrialSpawnerData;hasSpawnData()Z
    • hasSpawnedAllMobs

      public boolean hasSpawnedAllMobs(TrialSpawnerConfig config, int additionalPlayers)
      Mappings:
      Namespace Name Mixin selector
      official a Ldit;a(Ldis;I)Z
      intermediary method_55192 Lnet/minecraft/class_8966;method_55192(Lnet/minecraft/class_8965;I)Z
      named hasSpawnedAllMobs Lnet/minecraft/block/spawner/TrialSpawnerData;hasSpawnedAllMobs(Lnet/minecraft/block/spawner/TrialSpawnerConfig;I)Z
    • areMobsDead

      public boolean areMobsDead()
      Mappings:
      Namespace Name Mixin selector
      official c Ldit;c()Z
      intermediary method_55200 Lnet/minecraft/class_8966;method_55200()Z
      named areMobsDead Lnet/minecraft/block/spawner/TrialSpawnerData;areMobsDead()Z
    • canSpawnMore

      public boolean canSpawnMore(ServerWorld world, TrialSpawnerConfig config, int additionalPlayers)
      Mappings:
      Namespace Name Mixin selector
      official a Ldit;a(Land;Ldis;I)Z
      intermediary method_55185 Lnet/minecraft/class_8966;method_55185(Lnet/minecraft/class_3218;Lnet/minecraft/class_8965;I)Z
      named canSpawnMore Lnet/minecraft/block/spawner/TrialSpawnerData;canSpawnMore(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/block/spawner/TrialSpawnerConfig;I)Z
    • getAdditionalPlayers

      public int getAdditionalPlayers(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Ldit;a(Lhx;)I
      intermediary method_55195 Lnet/minecraft/class_8966;method_55195(Lnet/minecraft/class_2338;)I
      named getAdditionalPlayers Lnet/minecraft/block/spawner/TrialSpawnerData;getAdditionalPlayers(Lnet/minecraft/util/math/BlockPos;)I
    • updatePlayers

      public void updatePlayers(ServerWorld world, BlockPos pos, EntityDetector entityDetector, int range)
      Mappings:
      Namespace Name Mixin selector
      official a Ldit;a(Land;Lhx;Ldiq;I)V
      intermediary method_55186 Lnet/minecraft/class_8966;method_55186(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Lnet/minecraft/class_8962;I)V
      named updatePlayers Lnet/minecraft/block/spawner/TrialSpawnerData;updatePlayers(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/spawner/EntityDetector;I)V
    • isCooldownPast

      public boolean isCooldownPast(ServerWorld world, TrialSpawnerConfig config, float position)
      Mappings:
      Namespace Name Mixin selector
      official a Ldit;a(Land;Ldis;F)Z
      intermediary method_55184 Lnet/minecraft/class_8966;method_55184(Lnet/minecraft/class_3218;Lnet/minecraft/class_8965;F)Z
      named isCooldownPast Lnet/minecraft/block/spawner/TrialSpawnerData;isCooldownPast(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/block/spawner/TrialSpawnerConfig;F)Z
    • isCooldownAtRepeating

      public boolean isCooldownAtRepeating(ServerWorld world, TrialSpawnerConfig config, float position)
      Mappings:
      Namespace Name Mixin selector
      official b Ldit;b(Land;Ldis;F)Z
      intermediary method_55198 Lnet/minecraft/class_8966;method_55198(Lnet/minecraft/class_3218;Lnet/minecraft/class_8965;F)Z
      named isCooldownAtRepeating Lnet/minecraft/block/spawner/TrialSpawnerData;isCooldownAtRepeating(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/block/spawner/TrialSpawnerConfig;F)Z
    • isCooldownOver

      public boolean isCooldownOver(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official a Ldit;a(Land;)Z
      intermediary method_55183 Lnet/minecraft/class_8966;method_55183(Lnet/minecraft/class_3218;)Z
      named isCooldownOver Lnet/minecraft/block/spawner/TrialSpawnerData;isCooldownOver(Lnet/minecraft/server/world/ServerWorld;)Z
    • setEntityType

      public void setEntityType(TrialSpawnerLogic logic, Random random, EntityType<?> type)
      Mappings:
      Namespace Name Mixin selector
      official a Ldit;a(Ldir;Lauv;Lblz;)V
      intermediary method_55189 Lnet/minecraft/class_8966;method_55189(Lnet/minecraft/class_8963;Lnet/minecraft/class_5819;Lnet/minecraft/class_1299;)V
      named setEntityType Lnet/minecraft/block/spawner/TrialSpawnerData;setEntityType(Lnet/minecraft/block/spawner/TrialSpawnerLogic;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/entity/EntityType;)V
    • getSpawnData

      protected MobSpawnerEntry getSpawnData(TrialSpawnerLogic logic, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Ldit;a(Ldir;Lauv;)Lcug;
      intermediary method_55188 Lnet/minecraft/class_8966;method_55188(Lnet/minecraft/class_8963;Lnet/minecraft/class_5819;)Lnet/minecraft/class_1952;
      named getSpawnData Lnet/minecraft/block/spawner/TrialSpawnerData;getSpawnData(Lnet/minecraft/block/spawner/TrialSpawnerLogic;Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/block/spawner/MobSpawnerEntry;
    • setDisplayEntity

      @Nullable public @Nullable Entity setDisplayEntity(TrialSpawnerLogic logic, World world, TrialSpawnerState state)
      Mappings:
      Namespace Name Mixin selector
      official a Ldit;a(Ldir;Lctp;Ldiu;)Lblv;
      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;
      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;
    • getSpawnDataNbt

      public NbtCompound getSpawnDataNbt(TrialSpawnerState state)
      Mappings:
      Namespace Name Mixin selector
      official a Ldit;a(Ldiu;)Lsn;
      intermediary method_55194 Lnet/minecraft/class_8966;method_55194(Lnet/minecraft/class_8967;)Lnet/minecraft/class_2487;
      named getSpawnDataNbt Lnet/minecraft/block/spawner/TrialSpawnerData;getSpawnDataNbt(Lnet/minecraft/block/enums/TrialSpawnerState;)Lnet/minecraft/nbt/NbtCompound;
    • getDisplayEntityRotation

      public double getDisplayEntityRotation()
      Mappings:
      Namespace Name Mixin selector
      official d Ldit;d()D
      intermediary method_55202 Lnet/minecraft/class_8966;method_55202()D
      named getDisplayEntityRotation Lnet/minecraft/block/spawner/TrialSpawnerData;getDisplayEntityRotation()D
    • getLastDisplayEntityRotation

      public double getLastDisplayEntityRotation()
      Mappings:
      Namespace Name Mixin selector
      official e Ldit;e()D
      intermediary method_55204 Lnet/minecraft/class_8966;method_55204()D
      named getLastDisplayEntityRotation Lnet/minecraft/block/spawner/TrialSpawnerData;getLastDisplayEntityRotation()D