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 named net/minecraft/entity/decoration/Brightnessintermediary net/minecraft/class_8104official bevnamed blockintermediary comp_1240official dnamed skyintermediary comp_1241official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theblockrecord component.static final com.mojang.serialization.Codec<Brightness> static final Brightnessstatic final com.mojang.serialization.Codec<Integer> private final intThe field for theskyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBrightness(int block, int sky) Creates an instance of aBrightnessrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintblock()Returns the value of theblockrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intpack()static intpack(int block, int sky) intsky()Returns the value of theskyrecord component.final StringtoString()Returns a string representation of this record class.static Brightnessunpack(int packed) static intunpackBlock(int packed) static intunpackSky(int packed)
-
Field Details
-
block
private final int blockThe field for theblockrecord component. -
sky
private final int skyThe field for theskyrecord component. -
LIGHT_LEVEL_CODEC
- Mappings:
Namespace Name Mixin selector named LIGHT_LEVEL_CODECLnet/minecraft/entity/decoration/Brightness;LIGHT_LEVEL_CODEC:Lcom/mojang/serialization/Codec;intermediary field_42262Lnet/minecraft/class_8104;field_42262:Lcom/mojang/serialization/Codec;official aLbev;a:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/entity/decoration/Brightness;CODEC:Lcom/mojang/serialization/Codec;intermediary field_42263Lnet/minecraft/class_8104;field_42263:Lcom/mojang/serialization/Codec;official bLbev;b:Lcom/mojang/serialization/Codec;
-
FULL
- Mappings:
Namespace Name Mixin selector named FULLLnet/minecraft/entity/decoration/Brightness;FULL:Lnet/minecraft/entity/decoration/Brightness;intermediary field_42264Lnet/minecraft/class_8104;field_42264:Lnet/minecraft/class_8104;official cLbev;c:Lbev;
-
-
Constructor Details
-
Method Details
-
pack
public static int pack(int block, int sky) - Mappings:
Namespace Name Mixin selector named packLnet/minecraft/entity/decoration/Brightness;pack(II)Iintermediary method_68888Lnet/minecraft/class_8104;method_68888(II)Iofficial aLbev;a(II)I
-
pack
public int pack()- Mappings:
Namespace Name Mixin selector named packLnet/minecraft/entity/decoration/Brightness;pack()Iintermediary method_48763Lnet/minecraft/class_8104;method_48763()Iofficial aLbev;a()I
-
unpackBlock
public static int unpackBlock(int packed) - Mappings:
Namespace Name Mixin selector named unpackBlockLnet/minecraft/entity/decoration/Brightness;unpackBlock(I)Iintermediary method_68887Lnet/minecraft/class_8104;method_68887(I)Iofficial aLbev;a(I)I
-
unpackSky
public static int unpackSky(int packed) - Mappings:
Namespace Name Mixin selector named unpackSkyLnet/minecraft/entity/decoration/Brightness;unpackSky(I)Iintermediary method_68889Lnet/minecraft/class_8104;method_68889(I)Iofficial bLbev;b(I)I
-
unpack
- Mappings:
Namespace Name Mixin selector named unpackLnet/minecraft/entity/decoration/Brightness;unpack(I)Lnet/minecraft/entity/decoration/Brightness;intermediary method_48764Lnet/minecraft/class_8104;method_48764(I)Lnet/minecraft/class_8104;official cLbev;c(I)Lbev;
-
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 theblockrecord component.- Returns:
- the value of the
blockrecord component
-
sky
public int sky()Returns the value of theskyrecord component.- Returns:
- the value of the
skyrecord component
-