Class LightingProvider

java.lang.Object
net.minecraft.world.chunk.light.LightingProvider
All Implemented Interfaces:
LightingView
Direct Known Subclasses:
ServerLightingProvider

public class LightingProvider extends Object implements LightingView
Mappings:
Namespace Name
official dwq
intermediary net/minecraft/class_3568
named net/minecraft/world/chunk/light/LightingProvider
  • Field Details

    • field_31714

      public static final int field_31714
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Ldwq;b:I
      intermediary field_31714 Lnet/minecraft/class_3568;field_31714:I
      named field_31714 Lnet/minecraft/world/chunk/light/LightingProvider;field_31714:I
    • world

      protected final HeightLimitView world
      Mappings:
      Namespace Name Mixin selector
      official c Ldwq;c:Lcmm;
      intermediary field_27339 Lnet/minecraft/class_3568;field_27339:Lnet/minecraft/class_5539;
      named world Lnet/minecraft/world/chunk/light/LightingProvider;world:Lnet/minecraft/world/HeightLimitView;
    • blockLightProvider

      @Nullable private final @Nullable ChunkLightProvider<?,?> blockLightProvider
      Mappings:
      Namespace Name Mixin selector
      official a Ldwq;a:Ldws;
      intermediary field_15814 Lnet/minecraft/class_3568;field_15814:Lnet/minecraft/class_3558;
      named blockLightProvider Lnet/minecraft/world/chunk/light/LightingProvider;blockLightProvider:Lnet/minecraft/world/chunk/light/ChunkLightProvider;
    • skyLightProvider

      @Nullable private final @Nullable ChunkLightProvider<?,?> skyLightProvider
      Mappings:
      Namespace Name Mixin selector
      official d Ldwq;d:Ldws;
      intermediary field_15813 Lnet/minecraft/class_3568;field_15813:Lnet/minecraft/class_3558;
      named skyLightProvider Lnet/minecraft/world/chunk/light/LightingProvider;skyLightProvider:Lnet/minecraft/world/chunk/light/ChunkLightProvider;
  • Constructor Details

    • LightingProvider

      public LightingProvider(ChunkProvider chunkProvider, boolean hasBlockLight, boolean hasSkyLight)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldwq;<init>(Ldei;ZZ)V
      intermediary <init> Lnet/minecraft/class_3568;<init>(Lnet/minecraft/class_2823;ZZ)V
      named <init> Lnet/minecraft/world/chunk/light/LightingProvider;<init>(Lnet/minecraft/world/chunk/ChunkProvider;ZZ)V
  • Method Details

    • checkBlock

      public void checkBlock(BlockPos pos)
      Specified by:
      checkBlock in interface LightingView
      Mappings:
      Namespace Name Mixin selector
      official a Ldwt;a(Lgu;)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 D_ Ldwt;D_()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 Ldwt;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 Ldwt;a(Lhx;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 Ldwt;a(Lclr;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 Ldwt;b(Lclr;)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
    • get

      public ChunkLightingView get(LightType lightType)
      Mappings:
      Namespace Name Mixin selector
      official a Ldwq;a(Lcmt;)Ldwo;
      intermediary method_15562 Lnet/minecraft/class_3568;method_15562(Lnet/minecraft/class_1944;)Lnet/minecraft/class_3562;
      named get Lnet/minecraft/world/chunk/light/LightingProvider;get(Lnet/minecraft/world/LightType;)Lnet/minecraft/world/chunk/light/ChunkLightingView;
    • displaySectionLevel

      public String displaySectionLevel(LightType lightType, ChunkSectionPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Ldwq;a(Lcmt;Lhx;)Ljava/lang/String;
      intermediary method_22876 Lnet/minecraft/class_3568;method_22876(Lnet/minecraft/class_1944;Lnet/minecraft/class_4076;)Ljava/lang/String;
      named displaySectionLevel Lnet/minecraft/world/chunk/light/LightingProvider;displaySectionLevel(Lnet/minecraft/world/LightType;Lnet/minecraft/util/math/ChunkSectionPos;)Ljava/lang/String;
    • getStatus

      public LightStorage.Status getStatus(LightType lightType, ChunkSectionPos pos)
      Mappings:
      Namespace Name Mixin selector
      official b Ldwq;b(Lcmt;Lhx;)Ldwp$b;
      intermediary method_51560 Lnet/minecraft/class_3568;method_51560(Lnet/minecraft/class_1944;Lnet/minecraft/class_4076;)Lnet/minecraft/class_3560$class_8530;
      named getStatus Lnet/minecraft/world/chunk/light/LightingProvider;getStatus(Lnet/minecraft/world/LightType;Lnet/minecraft/util/math/ChunkSectionPos;)Lnet/minecraft/world/chunk/light/LightStorage$Status;
    • enqueueSectionData

      public void enqueueSectionData(LightType lightType, ChunkSectionPos pos, @Nullable @Nullable ChunkNibbleArray nibbles)
      Mappings:
      Namespace Name Mixin selector
      official a Ldwq;a(Lcmt;Lhx;Ldea;)V
      intermediary method_15558 Lnet/minecraft/class_3568;method_15558(Lnet/minecraft/class_1944;Lnet/minecraft/class_4076;Lnet/minecraft/class_2804;)V
      named enqueueSectionData Lnet/minecraft/world/chunk/light/LightingProvider;enqueueSectionData(Lnet/minecraft/world/LightType;Lnet/minecraft/util/math/ChunkSectionPos;Lnet/minecraft/world/chunk/ChunkNibbleArray;)V
    • setRetainData

      public void setRetainData(ChunkPos pos, boolean retainData)
      Mappings:
      Namespace Name Mixin selector
      official b Ldwq;b(Lclr;Z)V
      intermediary method_20601 Lnet/minecraft/class_3568;method_20601(Lnet/minecraft/class_1923;Z)V
      named setRetainData Lnet/minecraft/world/chunk/light/LightingProvider;setRetainData(Lnet/minecraft/util/math/ChunkPos;Z)V
    • getLight

      public int getLight(BlockPos pos, int ambientDarkness)
      Mappings:
      Namespace Name Mixin selector
      official a Ldwq;a(Lgu;I)I
      intermediary method_22363 Lnet/minecraft/class_3568;method_22363(Lnet/minecraft/class_2338;I)I
      named getLight Lnet/minecraft/world/chunk/light/LightingProvider;getLight(Lnet/minecraft/util/math/BlockPos;I)I
    • isLightingEnabled

      public boolean isLightingEnabled(ChunkSectionPos sectionPos)
      Mappings:
      Namespace Name Mixin selector
      official a Ldwq;a(Lhx;)Z
      intermediary method_51559 Lnet/minecraft/class_3568;method_51559(Lnet/minecraft/class_4076;)Z
      named isLightingEnabled Lnet/minecraft/world/chunk/light/LightingProvider;isLightingEnabled(Lnet/minecraft/util/math/ChunkSectionPos;)Z
    • getHeight

      public int getHeight()
      Mappings:
      Namespace Name Mixin selector
      official c Ldwq;c()I
      intermediary method_31928 Lnet/minecraft/class_3568;method_31928()I
      named getHeight Lnet/minecraft/world/chunk/light/LightingProvider;getHeight()I
    • getBottomY

      public int getBottomY()
      Mappings:
      Namespace Name Mixin selector
      official d Ldwq;d()I
      intermediary method_31929 Lnet/minecraft/class_3568;method_31929()I
      named getBottomY Lnet/minecraft/world/chunk/light/LightingProvider;getBottomY()I
    • getTopY

      public int getTopY()
      Mappings:
      Namespace Name Mixin selector
      official e Ldwq;e()I
      intermediary method_31930 Lnet/minecraft/class_3568;method_31930()I
      named getTopY Lnet/minecraft/world/chunk/light/LightingProvider;getTopY()I