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$a
intermediary net/minecraft/class_3562$class_3563
named net/minecraft/world/chunk/light/ChunkLightingView$Empty
official c
intermediary comp_2604
named lightLevel
  • Field Details

    • lightLevel

      private final int lightLevel
      The field for the lightLevel record component.
    • field_51032

      public static final ChunkLightingView.Empty field_51032
      Mappings:
      Namespace Name Mixin selector
      official a Leor$a;a:Leor$a;
      intermediary field_51032 Lnet/minecraft/class_3562$class_3563;field_51032:Lnet/minecraft/class_3562$class_3563;
      named field_51032 Lnet/minecraft/world/chunk/light/ChunkLightingView$Empty;field_51032:Lnet/minecraft/world/chunk/light/ChunkLightingView$Empty;
    • field_51033

      public static final ChunkLightingView.Empty field_51033
      Mappings:
      Namespace Name Mixin selector
      official b Leor$a;b:Leor$a;
      intermediary field_51033 Lnet/minecraft/class_3562$class_3563;field_51033:Lnet/minecraft/class_3562$class_3563;
      named field_51033 Lnet/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

      @Nullable public @Nullable ChunkNibbleArray getLightSection(ChunkSectionPos pos)
      Specified by:
      getLightSection in interface ChunkLightingView
      Mappings:
      Namespace Name Mixin selector
      official a Leor;a(Ljt;)Ldvd;
      intermediary method_15544 Lnet/minecraft/class_3562;method_15544(Lnet/minecraft/class_4076;)Lnet/minecraft/class_2804;
      named getLightSection Lnet/minecraft/world/chunk/light/ChunkLightingView;getLightSection(Lnet/minecraft/util/math/ChunkSectionPos;)Lnet/minecraft/world/chunk/ChunkNibbleArray;
    • getLightLevel

      public int getLightLevel(BlockPos pos)
      Specified by:
      getLightLevel in interface ChunkLightingView
      Mappings:
      Namespace Name Mixin selector
      official b Leor;b(Lir;)I
      intermediary method_15543 Lnet/minecraft/class_3562;method_15543(Lnet/minecraft/class_2338;)I
      named getLightLevel Lnet/minecraft/world/chunk/light/ChunkLightingView;getLightLevel(Lnet/minecraft/util/math/BlockPos;)I
    • checkBlock

      public void checkBlock(BlockPos pos)
      Specified by:
      checkBlock in interface LightingView
      Mappings:
      Namespace Name Mixin selector
      official a Leow;a(Lir;)V
      intermediary method_15513 Lnet/minecraft/class_3565;method_15513(Lnet/minecraft/class_2338;)V
      named checkBlock Lnet/minecraft/world/chunk/light/LightingView;checkBlock(Lnet/minecraft/util/math/BlockPos;)V
    • hasUpdates

      public boolean hasUpdates()
      Specified by:
      hasUpdates in interface LightingView
      Mappings:
      Namespace Name Mixin selector
      official L_ Leow;L_()Z
      intermediary method_15518 Lnet/minecraft/class_3565;method_15518()Z
      named hasUpdates Lnet/minecraft/world/chunk/light/LightingView;hasUpdates()Z
    • doLightUpdates

      public int doLightUpdates()
      Specified by:
      doLightUpdates in interface LightingView
      Mappings:
      Namespace Name Mixin selector
      official a Leow;a()I
      intermediary method_15516 Lnet/minecraft/class_3565;method_15516()I
      named doLightUpdates Lnet/minecraft/world/chunk/light/LightingView;doLightUpdates()I
    • setSectionStatus

      public void setSectionStatus(ChunkSectionPos pos, boolean notReady)
      Specified by:
      setSectionStatus in interface LightingView
      Mappings:
      Namespace Name Mixin selector
      official a Leow;a(Ljt;Z)V
      intermediary method_15551 Lnet/minecraft/class_3565;method_15551(Lnet/minecraft/class_4076;Z)V
      named setSectionStatus Lnet/minecraft/world/chunk/light/LightingView;setSectionStatus(Lnet/minecraft/util/math/ChunkSectionPos;Z)V
    • setColumnEnabled

      public void setColumnEnabled(ChunkPos pos, boolean retainData)
      Specified by:
      setColumnEnabled in interface LightingView
      Mappings:
      Namespace Name Mixin selector
      official a Leow;a(Ldbh;Z)V
      intermediary method_15512 Lnet/minecraft/class_3565;method_15512(Lnet/minecraft/class_1923;Z)V
      named setColumnEnabled Lnet/minecraft/world/chunk/light/LightingView;setColumnEnabled(Lnet/minecraft/util/math/ChunkPos;Z)V
    • propagateLight

      public void propagateLight(ChunkPos chunkPos)
      Specified by:
      propagateLight in interface LightingView
      Mappings:
      Namespace Name Mixin selector
      official b Leow;b(Ldbh;)V
      intermediary method_51471 Lnet/minecraft/class_3565;method_51471(Lnet/minecraft/class_1923;)V
      named propagateLight Lnet/minecraft/world/chunk/light/LightingView;propagateLight(Lnet/minecraft/util/math/ChunkPos;)V
    • 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.
    • lightLevel

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