Record Class TrialSpawnerData.Packed

java.lang.Object
java.lang.Record
net.minecraft.block.spawner.TrialSpawnerData.Packed
Record Components:
detectedPlayers -
currentMobs -
cooldownEndsAt -
nextMobSpawnsAt -
totalMobsSpawned -
nextSpawnData -
ejectingLootTable -
Enclosing class:
TrialSpawnerData

public static record TrialSpawnerData.Packed(Set<UUID> detectedPlayers, Set<UUID> currentMobs, long cooldownEndsAt, long nextMobSpawnsAt, int totalMobsSpawned, Optional<MobSpawnerEntry> nextSpawnData, Optional<RegistryKey<LootTable>> ejectingLootTable) extends Record
Mappings:
Namespace Name
named net/minecraft/block/spawner/TrialSpawnerData$Packed
intermediary net/minecraft/class_8966$class_11350
official edg$a
named detectedPlayers
intermediary comp_4235
official b
named currentMobs
intermediary comp_4236
official c
named cooldownEndsAt
intermediary comp_4237
official d
named nextMobSpawnsAt
intermediary comp_4238
official e
named totalMobsSpawned
intermediary comp_4239
official f
named nextSpawnData
intermediary comp_4240
official g
named ejectingLootTable
intermediary comp_4241
official h
  • Field Details

    • detectedPlayers

      private final Set<UUID> detectedPlayers
      The field for the detectedPlayers record component.
    • currentMobs

      private final Set<UUID> currentMobs
      The field for the currentMobs record component.
    • cooldownEndsAt

      private final long cooldownEndsAt
      The field for the cooldownEndsAt record component.
    • nextMobSpawnsAt

      private final long nextMobSpawnsAt
      The field for the nextMobSpawnsAt record component.
    • totalMobsSpawned

      private final int totalMobsSpawned
      The field for the totalMobsSpawned record component.
    • nextSpawnData

      private final Optional<MobSpawnerEntry> nextSpawnData
      The field for the nextSpawnData record component.
    • ejectingLootTable

      private final Optional<RegistryKey<LootTable>> ejectingLootTable
      The field for the ejectingLootTable record component.
    • CODEC

      public static final com.mojang.serialization.MapCodec<TrialSpawnerData.Packed> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/block/spawner/TrialSpawnerData$Packed;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_60376 Lnet/minecraft/class_8966$class_11350;field_60376:Lcom/mojang/serialization/MapCodec;
      official a Ledg$a;a:Lcom/mojang/serialization/MapCodec;
  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • detectedPlayers

      public Set<UUID> detectedPlayers()
      Returns the value of the detectedPlayers record component.
      Returns:
      the value of the detectedPlayers record component
    • currentMobs

      public Set<UUID> currentMobs()
      Returns the value of the currentMobs record component.
      Returns:
      the value of the currentMobs record component
    • cooldownEndsAt

      public long cooldownEndsAt()
      Returns the value of the cooldownEndsAt record component.
      Returns:
      the value of the cooldownEndsAt record component
    • nextMobSpawnsAt

      public long nextMobSpawnsAt()
      Returns the value of the nextMobSpawnsAt record component.
      Returns:
      the value of the nextMobSpawnsAt record component
    • totalMobsSpawned

      public int totalMobsSpawned()
      Returns the value of the totalMobsSpawned record component.
      Returns:
      the value of the totalMobsSpawned record component
    • nextSpawnData

      public Optional<MobSpawnerEntry> nextSpawnData()
      Returns the value of the nextSpawnData record component.
      Returns:
      the value of the nextSpawnData record component
    • ejectingLootTable

      public Optional<RegistryKey<LootTable>> ejectingLootTable()
      Returns the value of the ejectingLootTable record component.
      Returns:
      the value of the ejectingLootTable record component