Package net.minecraft.world.chunk.light
Record Class ChunkLightingView.Empty
java.lang.Object
java.lang.Record
net.minecraft.world.chunk.light.ChunkLightingView.Empty
- Record Components:
lightLevel-
- All Implemented Interfaces:
ChunkLightingView,LightingView
- Enclosing interface:
ChunkLightingView
public static record ChunkLightingView.Empty(int lightLevel)
extends Record
implements ChunkLightingView
- Mappings:
Namespace Name official eor$aintermediary net/minecraft/class_3562$class_3563named net/minecraft/world/chunk/light/ChunkLightingView$Emptyofficial cintermediary comp_2604named lightLevel
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.chunk.light.ChunkLightingView
ChunkLightingView.Empty -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ChunkLightingView.Emptystatic final ChunkLightingView.Emptyprivate final intThe field for thelightLevelrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckBlock(BlockPos pos) intfinal booleanIndicates whether some other object is "equal to" this one.intgetLightLevel(BlockPos pos) final inthashCode()Returns a hash code value for this object.booleanintReturns the value of thelightLevelrecord component.voidpropagateLight(ChunkPos chunkPos) voidsetColumnEnabled(ChunkPos pos, boolean retainData) voidsetSectionStatus(ChunkSectionPos pos, boolean notReady) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.chunk.light.LightingView
setSectionStatus
-
Field Details
-
lightLevel
private final int lightLevelThe field for thelightLevelrecord component. -
field_51032
- Mappings:
Namespace Name Mixin selector official aLeor$a;a:Leor$a;intermediary field_51032Lnet/minecraft/class_3562$class_3563;field_51032:Lnet/minecraft/class_3562$class_3563;named field_51032Lnet/minecraft/world/chunk/light/ChunkLightingView$Empty;field_51032:Lnet/minecraft/world/chunk/light/ChunkLightingView$Empty;
-
field_51033
- Mappings:
Namespace Name Mixin selector official bLeor$a;b:Leor$a;intermediary field_51033Lnet/minecraft/class_3562$class_3563;field_51033:Lnet/minecraft/class_3562$class_3563;named field_51033Lnet/minecraft/world/chunk/light/ChunkLightingView$Empty;field_51033:Lnet/minecraft/world/chunk/light/ChunkLightingView$Empty;
-
-
Constructor Details
-
Empty
public Empty(int int2)
-
-
Method Details
-
getLightSection
- Specified by:
getLightSectionin interfaceChunkLightingView- Mappings:
Namespace Name Mixin selector official aLeor;a(Ljt;)Ldvd;intermediary method_15544Lnet/minecraft/class_3562;method_15544(Lnet/minecraft/class_4076;)Lnet/minecraft/class_2804;named getLightSectionLnet/minecraft/world/chunk/light/ChunkLightingView;getLightSection(Lnet/minecraft/util/math/ChunkSectionPos;)Lnet/minecraft/world/chunk/ChunkNibbleArray;
-
getLightLevel
- Specified by:
getLightLevelin interfaceChunkLightingView- Mappings:
Namespace Name Mixin selector official bLeor;b(Lir;)Iintermediary method_15543Lnet/minecraft/class_3562;method_15543(Lnet/minecraft/class_2338;)Inamed getLightLevelLnet/minecraft/world/chunk/light/ChunkLightingView;getLightLevel(Lnet/minecraft/util/math/BlockPos;)I
-
checkBlock
- Specified by:
checkBlockin interfaceLightingView- Mappings:
Namespace Name Mixin selector official aLeow;a(Lir;)Vintermediary method_15513Lnet/minecraft/class_3565;method_15513(Lnet/minecraft/class_2338;)Vnamed checkBlockLnet/minecraft/world/chunk/light/LightingView;checkBlock(Lnet/minecraft/util/math/BlockPos;)V
-
hasUpdates
public boolean hasUpdates()- Specified by:
hasUpdatesin interfaceLightingView- Mappings:
Namespace Name Mixin selector official L_Leow;L_()Zintermediary method_15518Lnet/minecraft/class_3565;method_15518()Znamed hasUpdatesLnet/minecraft/world/chunk/light/LightingView;hasUpdates()Z
-
doLightUpdates
public int doLightUpdates()- Specified by:
doLightUpdatesin interfaceLightingView- Mappings:
Namespace Name Mixin selector official aLeow;a()Iintermediary method_15516Lnet/minecraft/class_3565;method_15516()Inamed doLightUpdatesLnet/minecraft/world/chunk/light/LightingView;doLightUpdates()I
-
setSectionStatus
- Specified by:
setSectionStatusin interfaceLightingView- Mappings:
Namespace Name Mixin selector official aLeow;a(Ljt;Z)Vintermediary method_15551Lnet/minecraft/class_3565;method_15551(Lnet/minecraft/class_4076;Z)Vnamed setSectionStatusLnet/minecraft/world/chunk/light/LightingView;setSectionStatus(Lnet/minecraft/util/math/ChunkSectionPos;Z)V
-
setColumnEnabled
- Specified by:
setColumnEnabledin interfaceLightingView- Mappings:
Namespace Name Mixin selector official aLeow;a(Ldbh;Z)Vintermediary method_15512Lnet/minecraft/class_3565;method_15512(Lnet/minecraft/class_1923;Z)Vnamed setColumnEnabledLnet/minecraft/world/chunk/light/LightingView;setColumnEnabled(Lnet/minecraft/util/math/ChunkPos;Z)V
-
propagateLight
- Specified by:
propagateLightin interfaceLightingView- Mappings:
Namespace Name Mixin selector official bLeow;b(Ldbh;)Vintermediary method_51471Lnet/minecraft/class_3565;method_51471(Lnet/minecraft/class_1923;)Vnamed propagateLightLnet/minecraft/world/chunk/light/LightingView;propagateLight(Lnet/minecraft/util/math/ChunkPos;)V
-
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 '=='. -
lightLevel
public int lightLevel()Returns the value of thelightLevelrecord component.- Returns:
- the value of the
lightLevelrecord component
-