Package net.minecraft.entity.decoration
Record Class Brightness
java.lang.Object
java.lang.Record
net.minecraft.entity.decoration.Brightness
- Record Components:
block
-sky
-
- Mappings:
Namespace Name official ant
intermediary net/minecraft/class_8104
named net/minecraft/entity/decoration/Brightness
official d
intermediary comp_1240
named block
official e
intermediary comp_1241
named sky
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
The field for theblock
record component.static final com.mojang.serialization.Codec<Brightness>
static Brightness
static final com.mojang.serialization.Codec<Integer>
private final int
The field for thesky
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
block()
Returns the value of theblock
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
pack()
int
sky()
Returns the value of thesky
record component.final String
toString()
Returns a string representation of this record class.static Brightness
unpack
(int packed)
-
Field Details
-
block
private final int blockThe field for theblock
record component. -
sky
private final int skyThe field for thesky
record component. -
LIGHT_LEVEL_CODEC
- Mappings:
Namespace Name Mixin selector official a
Lant;a:Lcom/mojang/serialization/Codec;
intermediary field_42262
Lnet/minecraft/class_8104;field_42262:Lcom/mojang/serialization/Codec;
named LIGHT_LEVEL_CODEC
Lnet/minecraft/entity/decoration/Brightness;LIGHT_LEVEL_CODEC:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector official b
Lant;b:Lcom/mojang/serialization/Codec;
intermediary field_42263
Lnet/minecraft/class_8104;field_42263:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/entity/decoration/Brightness;CODEC:Lcom/mojang/serialization/Codec;
-
FULL
- Mappings:
Namespace Name Mixin selector official c
Lant;c:Lant;
intermediary field_42264
Lnet/minecraft/class_8104;field_42264:Lnet/minecraft/class_8104;
named FULL
Lnet/minecraft/entity/decoration/Brightness;FULL:Lnet/minecraft/entity/decoration/Brightness;
-
-
Constructor Details
-
Brightness
public Brightness(int int2, int int3)
-
-
Method Details
-
pack
public int pack()- Mappings:
Namespace Name Mixin selector official a
Lant;a()I
intermediary method_48763
Lnet/minecraft/class_8104;method_48763()I
named pack
Lnet/minecraft/entity/decoration/Brightness;pack()I
-
unpack
- Mappings:
Namespace Name Mixin selector official a
Lant;a(I)Lant;
intermediary method_48764
Lnet/minecraft/class_8104;method_48764(I)Lnet/minecraft/class_8104;
named unpack
Lnet/minecraft/entity/decoration/Brightness;unpack(I)Lnet/minecraft/entity/decoration/Brightness;
-
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. All components in this record class are compared with '=='. -
block
public int block()Returns the value of theblock
record component.- Returns:
- the value of the
block
record component
-
sky
public int sky()Returns the value of thesky
record component.- Returns:
- the value of the
sky
record component
-