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 dvz$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 Details

    • needsStateScanning

      private final boolean needsStateScanning
      The field for the needsStateScanning record component.
    • dragonKilled

      private final boolean dragonKilled
      The field for the dragonKilled record component.
    • previouslyKilled

      private final boolean previouslyKilled
      The field for the previouslyKilled record component.
    • isRespawning

      private final boolean isRespawning
      The field for the isRespawning record component.
    • dragonUUID

      private final Optional<UUID> dragonUUID
      The field for the dragonUUID record component.
    • exitPortalLocation

      private final Optional<BlockPos> exitPortalLocation
      The field for the exitPortalLocation record component.
    • gateways

      private final Optional<List<Integer>> gateways
      The field for the gateways record component.
    • CODEC

      public static final com.mojang.serialization.Codec<EnderDragonFight.Data> 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 Ldvz$a;a:Lcom/mojang/serialization/Codec;
    • DEFAULT

      public static final EnderDragonFight.Data 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 Ldvz$a;b:Ldvz$a;
  • Constructor Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • needsStateScanning

      public boolean needsStateScanning()
      Returns the value of the needsStateScanning record component.
      Returns:
      the value of the needsStateScanning record component
    • dragonKilled

      public boolean dragonKilled()
      Returns the value of the dragonKilled record component.
      Returns:
      the value of the dragonKilled record component
    • previouslyKilled

      public boolean previouslyKilled()
      Returns the value of the previouslyKilled record component.
      Returns:
      the value of the previouslyKilled record component
    • isRespawning

      public boolean isRespawning()
      Returns the value of the isRespawning record component.
      Returns:
      the value of the isRespawning record component
    • dragonUUID

      public Optional<UUID> dragonUUID()
      Returns the value of the dragonUUID record component.
      Returns:
      the value of the dragonUUID record component
    • exitPortalLocation

      public Optional<BlockPos> exitPortalLocation()
      Returns the value of the exitPortalLocation record component.
      Returns:
      the value of the exitPortalLocation record component
    • gateways

      public Optional<List<Integer>> gateways()
      Returns the value of the gateways record component.
      Returns:
      the value of the gateways record component