Record Class PlayerAbilities.Packed

java.lang.Object
java.lang.Record
net.minecraft.entity.player.PlayerAbilities.Packed
Record Components:
invulnerable -
flying -
mayFly -
instabuild -
mayBuild -
flyingSpeed -
walkingSpeed -
Enclosing class:
PlayerAbilities

public static record PlayerAbilities.Packed(boolean invulnerable, boolean flying, boolean mayFly, boolean instabuild, boolean mayBuild, float flyingSpeed, float walkingSpeed) extends Record
Mappings:
Namespace Name
named net/minecraft/entity/player/PlayerAbilities$Packed
intermediary net/minecraft/class_1656$class_11347
official cup$a
named invulnerable
intermediary comp_4223
official b
named flying
intermediary comp_4224
official c
named mayFly
intermediary comp_4225
official d
named instabuild
intermediary comp_4226
official e
named mayBuild
intermediary comp_4227
official f
named flyingSpeed
intermediary comp_4228
official g
named walkingSpeed
intermediary comp_4229
official h
  • Field Details

    • invulnerable

      private final boolean invulnerable
      The field for the invulnerable record component.
    • flying

      private final boolean flying
      The field for the flying record component.
    • mayFly

      private final boolean mayFly
      The field for the mayFly record component.
    • instabuild

      private final boolean instabuild
      The field for the instabuild record component.
    • mayBuild

      private final boolean mayBuild
      The field for the mayBuild record component.
    • flyingSpeed

      private final float flyingSpeed
      The field for the flyingSpeed record component.
    • walkingSpeed

      private final float walkingSpeed
      The field for the walkingSpeed record component.
    • CODEC

      public static final com.mojang.serialization.Codec<PlayerAbilities.Packed> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/entity/player/PlayerAbilities$Packed;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_60363 Lnet/minecraft/class_1656$class_11347;field_60363:Lcom/mojang/serialization/Codec;
      official a Lcup$a;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • Packed

      public Packed(boolean bool, boolean bool2, boolean bool3, boolean bool4, boolean bool5, float float2, float float3)
  • 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. All components in this record class 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.
    • invulnerable

      public boolean invulnerable()
      Returns the value of the invulnerable record component.
      Returns:
      the value of the invulnerable record component
    • flying

      public boolean flying()
      Returns the value of the flying record component.
      Returns:
      the value of the flying record component
    • mayFly

      public boolean mayFly()
      Returns the value of the mayFly record component.
      Returns:
      the value of the mayFly record component
    • instabuild

      public boolean instabuild()
      Returns the value of the instabuild record component.
      Returns:
      the value of the instabuild record component
    • mayBuild

      public boolean mayBuild()
      Returns the value of the mayBuild record component.
      Returns:
      the value of the mayBuild record component
    • flyingSpeed

      public float flyingSpeed()
      Returns the value of the flyingSpeed record component.
      Returns:
      the value of the flyingSpeed record component
    • walkingSpeed

      public float walkingSpeed()
      Returns the value of the walkingSpeed record component.
      Returns:
      the value of the walkingSpeed record component