Package net.minecraft.block.spawner
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$Packedintermediary net/minecraft/class_8966$class_11350official eiq$anamed detectedPlayersintermediary comp_4235official bnamed currentMobsintermediary comp_4236official cnamed cooldownEndsAtintermediary comp_4237official dnamed nextMobSpawnsAtintermediary comp_4238official enamed totalMobsSpawnedintermediary comp_4239official fnamed nextSpawnDataintermediary comp_4240official gnamed ejectingLootTableintermediary comp_4241official h
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<TrialSpawnerData.Packed> private final longThe field for thecooldownEndsAtrecord component.The field for thecurrentMobsrecord component.The field for thedetectedPlayersrecord component.private final Optional<RegistryKey<LootTable>> The field for theejectingLootTablerecord component.private final longThe field for thenextMobSpawnsAtrecord component.private final Optional<MobSpawnerEntry> The field for thenextSpawnDatarecord component.private final intThe field for thetotalMobsSpawnedrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPacked(Set<UUID> set, Set<UUID> set2, long long2, long long3, int int2, Optional<MobSpawnerEntry> optional, Optional<RegistryKey<LootTable>> optional2) -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecooldownEndsAtrecord component.Returns the value of thecurrentMobsrecord component.Returns the value of thedetectedPlayersrecord component.Returns the value of theejectingLootTablerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thenextMobSpawnsAtrecord component.Returns the value of thenextSpawnDatarecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalMobsSpawnedrecord component.
-
Field Details
-
detectedPlayers
The field for thedetectedPlayersrecord component. -
currentMobs
The field for thecurrentMobsrecord component. -
cooldownEndsAt
private final long cooldownEndsAtThe field for thecooldownEndsAtrecord component. -
nextMobSpawnsAt
private final long nextMobSpawnsAtThe field for thenextMobSpawnsAtrecord component. -
totalMobsSpawned
private final int totalMobsSpawnedThe field for thetotalMobsSpawnedrecord component. -
nextSpawnData
The field for thenextSpawnDatarecord component. -
ejectingLootTable
The field for theejectingLootTablerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/block/spawner/TrialSpawnerData$Packed;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_60376Lnet/minecraft/class_8966$class_11350;field_60376:Lcom/mojang/serialization/MapCodec;official aLeiq$a;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
Packed
public Packed(Set<UUID> set, Set<UUID> set2, long long2, long long3, int int2, Optional<MobSpawnerEntry> optional, Optional<RegistryKey<LootTable>> optional2)
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
detectedPlayers
Returns the value of thedetectedPlayersrecord component.- Returns:
- the value of the
detectedPlayersrecord component
-
currentMobs
Returns the value of thecurrentMobsrecord component.- Returns:
- the value of the
currentMobsrecord component
-
cooldownEndsAt
public long cooldownEndsAt()Returns the value of thecooldownEndsAtrecord component.- Returns:
- the value of the
cooldownEndsAtrecord component
-
nextMobSpawnsAt
public long nextMobSpawnsAt()Returns the value of thenextMobSpawnsAtrecord component.- Returns:
- the value of the
nextMobSpawnsAtrecord component
-
totalMobsSpawned
public int totalMobsSpawned()Returns the value of thetotalMobsSpawnedrecord component.- Returns:
- the value of the
totalMobsSpawnedrecord component
-
nextSpawnData
Returns the value of thenextSpawnDatarecord component.- Returns:
- the value of the
nextSpawnDatarecord component
-
ejectingLootTable
Returns the value of theejectingLootTablerecord component.- Returns:
- the value of the
ejectingLootTablerecord component
-