Package net.minecraft.world.chunk
Class ChunkSection
java.lang.Object
net.minecraft.world.chunk.ChunkSection
public class ChunkSection extends Object
- Mappings:
Namespace Name official cjx
intermediary net/minecraft/class_2826
named net/minecraft/world/chunk/ChunkSection
-
Field Summary
Fields Modifier and Type Field Description private PalettedContainer<BlockState>
container
private short
nonEmptyBlockCount
private short
nonEmptyFluidCount
private static Palette<BlockState>
PALETTE
private short
randomTickableBlockCount
private int
yOffset
-
Constructor Summary
Constructors Constructor Description ChunkSection(int yOffset)
ChunkSection(int yOffset, short nonEmptyBlockCount, short randomTickableBlockCount, short nonEmptyFluidCount)
-
Method Summary
Modifier and Type Method Description void
calculateCounts()
void
fromPacket(PacketByteBuf buf)
BlockState
getBlockState(int x, int y, int z)
PalettedContainer<BlockState>
getContainer()
FluidState
getFluidState(int x, int y, int z)
int
getPacketSize()
int
getYOffset()
boolean
hasAny(Predicate<BlockState> predicate)
boolean
hasRandomBlockTicks()
boolean
hasRandomFluidTicks()
boolean
hasRandomTicks()
boolean
isEmpty()
static boolean
isEmpty(ChunkSection section)
void
lock()
static int
method_31729(int int2)
BlockState
setBlockState(int x, int y, int z, BlockState state)
BlockState
setBlockState(int x, int y, int z, BlockState state, boolean lock)
void
toPacket(PacketByteBuf buf)
void
unlock()
-
Field Details
-
PALETTE
- Mappings:
Namespace Name Mixin selector official a
Lcjx;a:Lckb;
intermediary field_12879
Lnet/minecraft/class_2826;field_12879:Lnet/minecraft/class_2837;
named PALETTE
Lnet/minecraft/world/chunk/ChunkSection;PALETTE:Lnet/minecraft/world/chunk/Palette;
-
yOffset
private final int yOffset- Mappings:
Namespace Name Mixin selector official b
Lcjx;b:I
intermediary field_12880
Lnet/minecraft/class_2826;field_12880:I
named yOffset
Lnet/minecraft/world/chunk/ChunkSection;yOffset:I
-
nonEmptyBlockCount
private short nonEmptyBlockCount- Mappings:
Namespace Name Mixin selector official c
Lcjx;c:S
intermediary field_12877
Lnet/minecraft/class_2826;field_12877:S
named nonEmptyBlockCount
Lnet/minecraft/world/chunk/ChunkSection;nonEmptyBlockCount:S
-
randomTickableBlockCount
private short randomTickableBlockCount- Mappings:
Namespace Name Mixin selector official d
Lcjx;d:S
intermediary field_12882
Lnet/minecraft/class_2826;field_12882:S
named randomTickableBlockCount
Lnet/minecraft/world/chunk/ChunkSection;randomTickableBlockCount:S
-
nonEmptyFluidCount
private short nonEmptyFluidCount- Mappings:
Namespace Name Mixin selector official e
Lcjx;e:S
intermediary field_12881
Lnet/minecraft/class_2826;field_12881:S
named nonEmptyFluidCount
Lnet/minecraft/world/chunk/ChunkSection;nonEmptyFluidCount:S
-
container
- Mappings:
Namespace Name Mixin selector official f
Lcjx;f:Lckd;
intermediary field_12878
Lnet/minecraft/class_2826;field_12878:Lnet/minecraft/class_2841;
named container
Lnet/minecraft/world/chunk/ChunkSection;container:Lnet/minecraft/world/chunk/PalettedContainer;
-
-
Constructor Details
-
ChunkSection
public ChunkSection(int yOffset)- Mappings:
Namespace Name Mixin selector official <init>
Lcjx;<init>(I)V
intermediary <init>
Lnet/minecraft/class_2826;<init>(I)V
named <init>
Lnet/minecraft/world/chunk/ChunkSection;<init>(I)V
-
ChunkSection
public ChunkSection(int yOffset, short nonEmptyBlockCount, short randomTickableBlockCount, short nonEmptyFluidCount)- Mappings:
Namespace Name Mixin selector official <init>
Lcjx;<init>(ISSS)V
intermediary <init>
Lnet/minecraft/class_2826;<init>(ISSS)V
named <init>
Lnet/minecraft/world/chunk/ChunkSection;<init>(ISSS)V
-
-
Method Details
-
method_31729
public static int method_31729(int int2)- Mappings:
Namespace Name Mixin selector official a
Lcjx;a(I)I
intermediary method_31729
Lnet/minecraft/class_2826;method_31729(I)I
named method_31729
Lnet/minecraft/world/chunk/ChunkSection;method_31729(I)I
-
getBlockState
- Mappings:
Namespace Name Mixin selector official a
Lcjx;a(III)Lcht;
intermediary method_12254
Lnet/minecraft/class_2826;method_12254(III)Lnet/minecraft/class_2680;
named getBlockState
Lnet/minecraft/world/chunk/ChunkSection;getBlockState(III)Lnet/minecraft/block/BlockState;
-
getFluidState
- Mappings:
Namespace Name Mixin selector official b
Lcjx;b(III)Ldal;
intermediary method_12255
Lnet/minecraft/class_2826;method_12255(III)Lnet/minecraft/class_3610;
named getFluidState
Lnet/minecraft/world/chunk/ChunkSection;getFluidState(III)Lnet/minecraft/fluid/FluidState;
-
lock
public void lock()- Mappings:
Namespace Name Mixin selector official a
Lcjx;a()V
intermediary method_16676
Lnet/minecraft/class_2826;method_16676()V
named lock
Lnet/minecraft/world/chunk/ChunkSection;lock()V
-
unlock
public void unlock()- Mappings:
Namespace Name Mixin selector official b
Lcjx;b()V
intermediary method_16677
Lnet/minecraft/class_2826;method_16677()V
named unlock
Lnet/minecraft/world/chunk/ChunkSection;unlock()V
-
setBlockState
- Mappings:
Namespace Name Mixin selector official a
Lcjx;a(IIILcht;)Lcht;
intermediary method_16675
Lnet/minecraft/class_2826;method_16675(IIILnet/minecraft/class_2680;)Lnet/minecraft/class_2680;
named setBlockState
Lnet/minecraft/world/chunk/ChunkSection;setBlockState(IIILnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;
-
setBlockState
- Mappings:
Namespace Name Mixin selector official a
Lcjx;a(IIILcht;Z)Lcht;
intermediary method_12256
Lnet/minecraft/class_2826;method_12256(IIILnet/minecraft/class_2680;Z)Lnet/minecraft/class_2680;
named setBlockState
Lnet/minecraft/world/chunk/ChunkSection;setBlockState(IIILnet/minecraft/block/BlockState;Z)Lnet/minecraft/block/BlockState;
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector official c
Lcjx;c()Z
intermediary method_12261
Lnet/minecraft/class_2826;method_12261()Z
named isEmpty
Lnet/minecraft/world/chunk/ChunkSection;isEmpty()Z
-
isEmpty
- Mappings:
Namespace Name Mixin selector official a
Lcjx;a(Lcjx;)Z
intermediary method_18090
Lnet/minecraft/class_2826;method_18090(Lnet/minecraft/class_2826;)Z
named isEmpty
Lnet/minecraft/world/chunk/ChunkSection;isEmpty(Lnet/minecraft/world/chunk/ChunkSection;)Z
-
hasRandomTicks
public boolean hasRandomTicks()- Mappings:
Namespace Name Mixin selector official d
Lcjx;d()Z
intermediary method_12262
Lnet/minecraft/class_2826;method_12262()Z
named hasRandomTicks
Lnet/minecraft/world/chunk/ChunkSection;hasRandomTicks()Z
-
hasRandomBlockTicks
public boolean hasRandomBlockTicks()- Mappings:
Namespace Name Mixin selector official e
Lcjx;e()Z
intermediary method_12263
Lnet/minecraft/class_2826;method_12263()Z
named hasRandomBlockTicks
Lnet/minecraft/world/chunk/ChunkSection;hasRandomBlockTicks()Z
-
hasRandomFluidTicks
public boolean hasRandomFluidTicks()- Mappings:
Namespace Name Mixin selector official f
Lcjx;f()Z
intermediary method_12264
Lnet/minecraft/class_2826;method_12264()Z
named hasRandomFluidTicks
Lnet/minecraft/world/chunk/ChunkSection;hasRandomFluidTicks()Z
-
getYOffset
public int getYOffset()- Mappings:
Namespace Name Mixin selector official g
Lcjx;g()I
intermediary method_12259
Lnet/minecraft/class_2826;method_12259()I
named getYOffset
Lnet/minecraft/world/chunk/ChunkSection;getYOffset()I
-
calculateCounts
public void calculateCounts()- Mappings:
Namespace Name Mixin selector official h
Lcjx;h()V
intermediary method_12253
Lnet/minecraft/class_2826;method_12253()V
named calculateCounts
Lnet/minecraft/world/chunk/ChunkSection;calculateCounts()V
-
getContainer
- Mappings:
Namespace Name Mixin selector official i
Lcjx;i()Lckd;
intermediary method_12265
Lnet/minecraft/class_2826;method_12265()Lnet/minecraft/class_2841;
named getContainer
Lnet/minecraft/world/chunk/ChunkSection;getContainer()Lnet/minecraft/world/chunk/PalettedContainer;
-
fromPacket
- Mappings:
Namespace Name Mixin selector official a
Lcjx;a(Lnw;)V
intermediary method_12258
Lnet/minecraft/class_2826;method_12258(Lnet/minecraft/class_2540;)V
named fromPacket
Lnet/minecraft/world/chunk/ChunkSection;fromPacket(Lnet/minecraft/network/PacketByteBuf;)V
-
toPacket
- Mappings:
Namespace Name Mixin selector official b
Lcjx;b(Lnw;)V
intermediary method_12257
Lnet/minecraft/class_2826;method_12257(Lnet/minecraft/class_2540;)V
named toPacket
Lnet/minecraft/world/chunk/ChunkSection;toPacket(Lnet/minecraft/network/PacketByteBuf;)V
-
getPacketSize
public int getPacketSize()- Mappings:
Namespace Name Mixin selector official j
Lcjx;j()I
intermediary method_12260
Lnet/minecraft/class_2826;method_12260()I
named getPacketSize
Lnet/minecraft/world/chunk/ChunkSection;getPacketSize()I
-
hasAny
- Mappings:
Namespace Name Mixin selector official a
Lcjx;a(Ljava/util/function/Predicate;)Z
intermediary method_19523
Lnet/minecraft/class_2826;method_19523(Ljava/util/function/Predicate;)Z
named hasAny
Lnet/minecraft/world/chunk/ChunkSection;hasAny(Ljava/util/function/Predicate;)Z
-