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$Dataintermediary net/minecraft/class_2881$class_8576official dxb$anamed needsStateScanningintermediary comp_1540official cnamed dragonKilledintermediary comp_1541official dnamed previouslyKilledintermediary comp_1542official enamed isRespawningintermediary comp_1543official fnamed dragonUUIDintermediary comp_1544official gnamed exitPortalLocationintermediary comp_1545official hnamed gatewaysintermediary comp_1546official i
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EnderDragonFight.Data> static final EnderDragonFight.Dataprivate final booleanThe field for thedragonKilledrecord component.The field for thedragonUUIDrecord component.The field for theexitPortalLocationrecord component.The field for thegatewaysrecord component.private final booleanThe field for theisRespawningrecord component.private final booleanThe field for theneedsStateScanningrecord component.private final booleanThe field for thepreviouslyKilledrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thedragonKilledrecord component.Returns the value of thedragonUUIDrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexitPortalLocationrecord component.gateways()Returns the value of thegatewaysrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisRespawningrecord component.booleanReturns the value of theneedsStateScanningrecord component.booleanReturns the value of thepreviouslyKilledrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
needsStateScanning
private final boolean needsStateScanningThe field for theneedsStateScanningrecord component. -
dragonKilled
private final boolean dragonKilledThe field for thedragonKilledrecord component. -
previouslyKilled
private final boolean previouslyKilledThe field for thepreviouslyKilledrecord component. -
isRespawning
private final boolean isRespawningThe field for theisRespawningrecord component. -
dragonUUID
The field for thedragonUUIDrecord component. -
exitPortalLocation
The field for theexitPortalLocationrecord component. -
gateways
The field for thegatewaysrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/entity/boss/dragon/EnderDragonFight$Data;CODEC:Lcom/mojang/serialization/Codec;intermediary field_44945Lnet/minecraft/class_2881$class_8576;field_44945:Lcom/mojang/serialization/Codec;official aLdxb$a;a:Lcom/mojang/serialization/Codec;
-
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/entity/boss/dragon/EnderDragonFight$Data;DEFAULT:Lnet/minecraft/entity/boss/dragon/EnderDragonFight$Data;intermediary field_44946Lnet/minecraft/class_2881$class_8576;field_44946:Lnet/minecraft/class_2881$class_8576;official bLdxb$a;b:Ldxb$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 theneedsStateScanningrecord component.- Returns:
- the value of the
needsStateScanningrecord component
-
dragonKilled
public boolean dragonKilled()Returns the value of thedragonKilledrecord component.- Returns:
- the value of the
dragonKilledrecord component
-
previouslyKilled
public boolean previouslyKilled()Returns the value of thepreviouslyKilledrecord component.- Returns:
- the value of the
previouslyKilledrecord component
-
isRespawning
public boolean isRespawning()Returns the value of theisRespawningrecord component.- Returns:
- the value of the
isRespawningrecord component
-
dragonUUID
Returns the value of thedragonUUIDrecord component.- Returns:
- the value of the
dragonUUIDrecord component
-
exitPortalLocation
Returns the value of theexitPortalLocationrecord component.- Returns:
- the value of the
exitPortalLocationrecord component
-
gateways
Returns the value of thegatewaysrecord component.- Returns:
- the value of the
gatewaysrecord component
-