Record Class Brightness

java.lang.Object
java.lang.Record
net.minecraft.entity.decoration.Brightness
Record Components:
block -
sky -

public record Brightness(int block, int sky) extends Record
Mappings:
Namespace Name
named net/minecraft/entity/decoration/Brightness
intermediary net/minecraft/class_8104
official ayu
named block
intermediary comp_1240
official d
named sky
intermediary comp_1241
official e
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    The field for the block record component.
    static final com.mojang.serialization.Codec<Brightness>
     
    static Brightness
     
    static final com.mojang.serialization.Codec<Integer>
     
    private final int
    The field for the sky record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Brightness(int int2, int int3)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the block record component.
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
     
    int
    sky()
    Returns the value of the sky record component.
    final String
    Returns a string representation of this record class.
    static Brightness
    unpack(int packed)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • block

      private final int block
      The field for the block record component.
    • sky

      private final int sky
      The field for the sky record component.
    • LIGHT_LEVEL_CODEC

      public static final com.mojang.serialization.Codec<Integer> LIGHT_LEVEL_CODEC
      Mappings:
      Namespace Name Mixin selector
      named LIGHT_LEVEL_CODEC Lnet/minecraft/entity/decoration/Brightness;LIGHT_LEVEL_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_42262 Lnet/minecraft/class_8104;field_42262:Lcom/mojang/serialization/Codec;
      official a Layu;a:Lcom/mojang/serialization/Codec;
    • CODEC

      public static final com.mojang.serialization.Codec<Brightness> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/entity/decoration/Brightness;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_42263 Lnet/minecraft/class_8104;field_42263:Lcom/mojang/serialization/Codec;
      official b Layu;b:Lcom/mojang/serialization/Codec;
    • FULL

      public static Brightness FULL
      Mappings:
      Namespace Name Mixin selector
      named FULL Lnet/minecraft/entity/decoration/Brightness;FULL:Lnet/minecraft/entity/decoration/Brightness;
      intermediary field_42264 Lnet/minecraft/class_8104;field_42264:Lnet/minecraft/class_8104;
      official c Layu;c:Layu;
  • Constructor Details

    • Brightness

      public Brightness(int int2, int int3)
  • Method Details

    • pack

      public int pack()
      Mappings:
      Namespace Name Mixin selector
      named pack Lnet/minecraft/entity/decoration/Brightness;pack()I
      intermediary method_48763 Lnet/minecraft/class_8104;method_48763()I
      official a Layu;a()I
    • unpack

      public static Brightness unpack(int packed)
      Mappings:
      Namespace Name Mixin selector
      named unpack Lnet/minecraft/entity/decoration/Brightness;unpack(I)Lnet/minecraft/entity/decoration/Brightness;
      intermediary method_48764 Lnet/minecraft/class_8104;method_48764(I)Lnet/minecraft/class_8104;
      official a Layu;a(I)Layu;
    • 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.
    • block

      public int block()
      Returns the value of the block record component.
      Returns:
      the value of the block record component
    • sky

      public int sky()
      Returns the value of the sky record component.
      Returns:
      the value of the sky record component