Class LayerLightSectionStorage.SectionState
java.lang.Object
net.minecraft.world.level.lighting.LayerLightSectionStorage.SectionState
- Enclosing class:
LayerLightSectionStorage<M extends DataLayerStorageMap<M>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byteprivate static final byteprivate static final intprivate static final intprivate static final byte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasData(byte pSectionState) static bytehasData(byte pSectionState, boolean pHasData) static intneighborCount(byte pSectionState) static byteneighborCount(byte pSectionState, int pNeighborCount) type(byte pSectionState)
-
Field Details
-
EMPTY
public static final byte EMPTY- See Also:
-
MIN_NEIGHBORS
private static final int MIN_NEIGHBORS- See Also:
-
MAX_NEIGHBORS
private static final int MAX_NEIGHBORS- See Also:
-
HAS_DATA_BIT
private static final byte HAS_DATA_BIT- See Also:
-
NEIGHBOR_COUNT_BITS
private static final byte NEIGHBOR_COUNT_BITS- See Also:
-
-
Constructor Details
-
SectionState
protected SectionState()
-
-
Method Details
-
hasData
public static byte hasData(byte pSectionState, boolean pHasData) -
neighborCount
public static byte neighborCount(byte pSectionState, int pNeighborCount) -
hasData
public static boolean hasData(byte pSectionState) -
neighborCount
public static int neighborCount(byte pSectionState) -
type
-