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 - eaw$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 SummaryFieldsModifier 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 SummaryConstructors
- 
Method SummaryModifier 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- 
needsStateScanningprivate final boolean needsStateScanningThe field for theneedsStateScanningrecord component.
- 
dragonKilledprivate final boolean dragonKilledThe field for thedragonKilledrecord component.
- 
previouslyKilledprivate final boolean previouslyKilledThe field for thepreviouslyKilledrecord component.
- 
isRespawningprivate final boolean isRespawningThe field for theisRespawningrecord component.
- 
dragonUUIDThe field for thedragonUUIDrecord component.
- 
exitPortalLocationThe field for theexitPortalLocationrecord component.
- 
gatewaysThe field for thegatewaysrecord 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- Leaw$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- Leaw$a;b:Leaw$a;
 
 
- 
- 
Constructor Details- 
Data
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
needsStateScanningpublic boolean needsStateScanning()Returns the value of theneedsStateScanningrecord component.- Returns:
- the value of the needsStateScanningrecord component
 
- 
dragonKilledpublic boolean dragonKilled()Returns the value of thedragonKilledrecord component.- Returns:
- the value of the dragonKilledrecord component
 
- 
previouslyKilledpublic boolean previouslyKilled()Returns the value of thepreviouslyKilledrecord component.- Returns:
- the value of the previouslyKilledrecord component
 
- 
isRespawningpublic boolean isRespawning()Returns the value of theisRespawningrecord component.- Returns:
- the value of the isRespawningrecord component
 
- 
dragonUUIDReturns the value of thedragonUUIDrecord component.- Returns:
- the value of the dragonUUIDrecord component
 
- 
exitPortalLocationReturns the value of theexitPortalLocationrecord component.- Returns:
- the value of the exitPortalLocationrecord component
 
- 
gatewaysReturns the value of thegatewaysrecord component.- Returns:
- the value of the gatewaysrecord component
 
 
-