Package net.minecraft.entity.boss.dragon
Record Class EnderDragonFight.Data
java.lang.Object
java.lang.Record
net.minecraft.entity.boss.dragon.EnderDragonFight.Data
- Record Components:
needsStateScanning
-dragonKilled
-previouslyKilled
-isRespawning
-dragonUUID
-exitPortalLocation
-gateways
-
- Enclosing class:
EnderDragonFight
public static record EnderDragonFight.Data(boolean needsStateScanning, boolean dragonKilled, boolean previouslyKilled, boolean isRespawning, Optional<UUID> dragonUUID, Optional<BlockPos> exitPortalLocation, Optional<List<Integer>> gateways)
extends Record
- Mappings:
Namespace Name named net/minecraft/entity/boss/dragon/EnderDragonFight$Data
intermediary net/minecraft/class_2881$class_8576
official ebs$a
named needsStateScanning
intermediary comp_1540
official c
named dragonKilled
intermediary comp_1541
official d
named previouslyKilled
intermediary comp_1542
official e
named isRespawning
intermediary comp_1543
official f
named dragonUUID
intermediary comp_1544
official g
named exitPortalLocation
intermediary comp_1545
official h
named gateways
intermediary comp_1546
official i
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<EnderDragonFight.Data> static final EnderDragonFight.Data
private final boolean
The field for thedragonKilled
record component.The field for thedragonUUID
record component.The field for theexitPortalLocation
record component.The field for thegateways
record component.private final boolean
The field for theisRespawning
record component.private final boolean
The field for theneedsStateScanning
record component.private final boolean
The field for thepreviouslyKilled
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of thedragonKilled
record component.Returns the value of thedragonUUID
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexitPortalLocation
record component.gateways()
Returns the value of thegateways
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisRespawning
record component.boolean
Returns the value of theneedsStateScanning
record component.boolean
Returns the value of thepreviouslyKilled
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
needsStateScanning
private final boolean needsStateScanningThe field for theneedsStateScanning
record component. -
dragonKilled
private final boolean dragonKilledThe field for thedragonKilled
record component. -
previouslyKilled
private final boolean previouslyKilledThe field for thepreviouslyKilled
record component. -
isRespawning
private final boolean isRespawningThe field for theisRespawning
record component. -
dragonUUID
The field for thedragonUUID
record component. -
exitPortalLocation
The field for theexitPortalLocation
record component. -
gateways
The field for thegateways
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/entity/boss/dragon/EnderDragonFight$Data;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_44945
Lnet/minecraft/class_2881$class_8576;field_44945:Lcom/mojang/serialization/Codec;
official a
Lebs$a;a:Lcom/mojang/serialization/Codec;
-
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULT
Lnet/minecraft/entity/boss/dragon/EnderDragonFight$Data;DEFAULT:Lnet/minecraft/entity/boss/dragon/EnderDragonFight$Data;
intermediary field_44946
Lnet/minecraft/class_2881$class_8576;field_44946:Lnet/minecraft/class_2881$class_8576;
official b
Lebs$a;b:Lebs$a;
-
-
Constructor Details
-
Data
-
-
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 '=='. -
needsStateScanning
public boolean needsStateScanning()Returns the value of theneedsStateScanning
record component.- Returns:
- the value of the
needsStateScanning
record component
-
dragonKilled
public boolean dragonKilled()Returns the value of thedragonKilled
record component.- Returns:
- the value of the
dragonKilled
record component
-
previouslyKilled
public boolean previouslyKilled()Returns the value of thepreviouslyKilled
record component.- Returns:
- the value of the
previouslyKilled
record component
-
isRespawning
public boolean isRespawning()Returns the value of theisRespawning
record component.- Returns:
- the value of the
isRespawning
record component
-
dragonUUID
Returns the value of thedragonUUID
record component.- Returns:
- the value of the
dragonUUID
record component
-
exitPortalLocation
Returns the value of theexitPortalLocation
record component.- Returns:
- the value of the
exitPortalLocation
record component
-
gateways
Returns the value of thegateways
record component.- Returns:
- the value of the
gateways
record component
-