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$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 Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec
<TrialSpawnerData.Packed> private final long
The field for thecooldownEndsAt
record component.The field for thecurrentMobs
record component.The field for thedetectedPlayers
record component.private final Optional
<RegistryKey<LootTable>> The field for theejectingLootTable
record component.private final long
The field for thenextMobSpawnsAt
record component.private final Optional
<MobSpawnerEntry> The field for thenextSpawnData
record component.private final int
The field for thetotalMobsSpawned
record 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 TypeMethodDescriptionlong
Returns the value of thecooldownEndsAt
record component.Returns the value of thecurrentMobs
record component.Returns the value of thedetectedPlayers
record component.Returns the value of theejectingLootTable
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
Returns the value of thenextMobSpawnsAt
record component.Returns the value of thenextSpawnData
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of thetotalMobsSpawned
record component.
-
Field Details
-
detectedPlayers
The field for thedetectedPlayers
record component. -
currentMobs
The field for thecurrentMobs
record component. -
cooldownEndsAt
private final long cooldownEndsAtThe field for thecooldownEndsAt
record component. -
nextMobSpawnsAt
private final long nextMobSpawnsAtThe field for thenextMobSpawnsAt
record component. -
totalMobsSpawned
private final int totalMobsSpawnedThe field for thetotalMobsSpawned
record component. -
nextSpawnData
The field for thenextSpawnData
record component. -
ejectingLootTable
The field for theejectingLootTable
record component. -
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
-
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 thedetectedPlayers
record component.- Returns:
- the value of the
detectedPlayers
record component
-
currentMobs
Returns the value of thecurrentMobs
record component.- Returns:
- the value of the
currentMobs
record component
-
cooldownEndsAt
public long cooldownEndsAt()Returns the value of thecooldownEndsAt
record component.- Returns:
- the value of the
cooldownEndsAt
record component
-
nextMobSpawnsAt
public long nextMobSpawnsAt()Returns the value of thenextMobSpawnsAt
record component.- Returns:
- the value of the
nextMobSpawnsAt
record component
-
totalMobsSpawned
public int totalMobsSpawned()Returns the value of thetotalMobsSpawned
record component.- Returns:
- the value of the
totalMobsSpawned
record component
-
nextSpawnData
Returns the value of thenextSpawnData
record component.- Returns:
- the value of the
nextSpawnData
record component
-
ejectingLootTable
Returns the value of theejectingLootTable
record component.- Returns:
- the value of the
ejectingLootTable
record component
-