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/Brightness- intermediary - net/minecraft/class_8104- official - axp- named - block- intermediary - comp_1240- official - d- named - sky- intermediary - comp_1241- official - e
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final intThe field for theblockrecord component.static final com.mojang.serialization.Codec<Brightness> static Brightnessstatic final com.mojang.serialization.Codec<Integer> private final intThe field for theskyrecord component.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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()intsky()Returns the value of theskyrecord component.final StringtoString()Returns a string representation of this record class.static Brightnessunpack(int packed) 
- 
Field Details- 
blockprivate final int blockThe field for theblockrecord component.
- 
skyprivate final int skyThe field for theskyrecord component.
- 
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- Laxp;a:Lcom/mojang/serialization/Codec;
 
- 
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- Laxp;b:Lcom/mojang/serialization/Codec;
 
- 
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- Laxp;c:Laxp;
 
 
- 
- 
Constructor Details- 
Brightnesspublic Brightness(int int2, int int3) 
 
- 
- 
Method Details- 
packpublic 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- Laxp;a()I
 
- 
unpack- 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- Laxp;a(I)Laxp;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
blockpublic int block()Returns the value of theblockrecord component.- Returns:
- the value of the blockrecord component
 
- 
skypublic int sky()Returns the value of theskyrecord component.- Returns:
- the value of the skyrecord component
 
 
-