Package net.minecraft.world.chunk
Class ChunkSection
java.lang.Object
net.minecraft.world.chunk.ChunkSection
public class ChunkSection extends Object
- Mappings:
Namespace Name official cjxintermediary net/minecraft/class_2826named net/minecraft/world/chunk/ChunkSection
-
Field Summary
Fields Modifier and Type Field Description private PalettedContainer<BlockState>containerprivate shortnonEmptyBlockCountprivate shortnonEmptyFluidCountprivate static Palette<BlockState>PALETTEprivate shortrandomTickableBlockCountprivate intyOffset -
Constructor Summary
Constructors Constructor Description ChunkSection(int yOffset)ChunkSection(int yOffset, short nonEmptyBlockCount, short randomTickableBlockCount, short nonEmptyFluidCount) -
Method Summary
Modifier and Type Method Description voidcalculateCounts()voidfromPacket(PacketByteBuf buf)BlockStategetBlockState(int x, int y, int z)PalettedContainer<BlockState>getContainer()FluidStategetFluidState(int x, int y, int z)intgetPacketSize()intgetYOffset()booleanhasAny(Predicate<BlockState> predicate)booleanhasRandomBlockTicks()booleanhasRandomFluidTicks()booleanhasRandomTicks()booleanisEmpty()static booleanisEmpty(ChunkSection section)voidlock()static intmethod_31729(int int2)BlockStatesetBlockState(int x, int y, int z, BlockState state)BlockStatesetBlockState(int x, int y, int z, BlockState state, boolean lock)voidtoPacket(PacketByteBuf buf)voidunlock()
-
Field Details
-
PALETTE
- Mappings:
Namespace Name Mixin selector official aLcjx;a:Lckb;intermediary field_12879Lnet/minecraft/class_2826;field_12879:Lnet/minecraft/class_2837;named PALETTELnet/minecraft/world/chunk/ChunkSection;PALETTE:Lnet/minecraft/world/chunk/Palette;
-
yOffset
private final int yOffset- Mappings:
Namespace Name Mixin selector official bLcjx;b:Iintermediary field_12880Lnet/minecraft/class_2826;field_12880:Inamed yOffsetLnet/minecraft/world/chunk/ChunkSection;yOffset:I
-
nonEmptyBlockCount
private short nonEmptyBlockCount- Mappings:
Namespace Name Mixin selector official cLcjx;c:Sintermediary field_12877Lnet/minecraft/class_2826;field_12877:Snamed nonEmptyBlockCountLnet/minecraft/world/chunk/ChunkSection;nonEmptyBlockCount:S
-
randomTickableBlockCount
private short randomTickableBlockCount- Mappings:
Namespace Name Mixin selector official dLcjx;d:Sintermediary field_12882Lnet/minecraft/class_2826;field_12882:Snamed randomTickableBlockCountLnet/minecraft/world/chunk/ChunkSection;randomTickableBlockCount:S
-
nonEmptyFluidCount
private short nonEmptyFluidCount- Mappings:
Namespace Name Mixin selector official eLcjx;e:Sintermediary field_12881Lnet/minecraft/class_2826;field_12881:Snamed nonEmptyFluidCountLnet/minecraft/world/chunk/ChunkSection;nonEmptyFluidCount:S
-
container
- Mappings:
Namespace Name Mixin selector official fLcjx;f:Lckd;intermediary field_12878Lnet/minecraft/class_2826;field_12878:Lnet/minecraft/class_2841;named containerLnet/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)Vintermediary <init>Lnet/minecraft/class_2826;<init>(I)Vnamed <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)Vintermediary <init>Lnet/minecraft/class_2826;<init>(ISSS)Vnamed <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 aLcjx;a(I)Iintermediary method_31729Lnet/minecraft/class_2826;method_31729(I)Inamed method_31729Lnet/minecraft/world/chunk/ChunkSection;method_31729(I)I
-
getBlockState
- Mappings:
Namespace Name Mixin selector official aLcjx;a(III)Lcht;intermediary method_12254Lnet/minecraft/class_2826;method_12254(III)Lnet/minecraft/class_2680;named getBlockStateLnet/minecraft/world/chunk/ChunkSection;getBlockState(III)Lnet/minecraft/block/BlockState;
-
getFluidState
- Mappings:
Namespace Name Mixin selector official bLcjx;b(III)Ldal;intermediary method_12255Lnet/minecraft/class_2826;method_12255(III)Lnet/minecraft/class_3610;named getFluidStateLnet/minecraft/world/chunk/ChunkSection;getFluidState(III)Lnet/minecraft/fluid/FluidState;
-
lock
public void lock()- Mappings:
Namespace Name Mixin selector official aLcjx;a()Vintermediary method_16676Lnet/minecraft/class_2826;method_16676()Vnamed lockLnet/minecraft/world/chunk/ChunkSection;lock()V
-
unlock
public void unlock()- Mappings:
Namespace Name Mixin selector official bLcjx;b()Vintermediary method_16677Lnet/minecraft/class_2826;method_16677()Vnamed unlockLnet/minecraft/world/chunk/ChunkSection;unlock()V
-
setBlockState
- Mappings:
Namespace Name Mixin selector official aLcjx;a(IIILcht;)Lcht;intermediary method_16675Lnet/minecraft/class_2826;method_16675(IIILnet/minecraft/class_2680;)Lnet/minecraft/class_2680;named setBlockStateLnet/minecraft/world/chunk/ChunkSection;setBlockState(IIILnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;
-
setBlockState
- Mappings:
Namespace Name Mixin selector official aLcjx;a(IIILcht;Z)Lcht;intermediary method_12256Lnet/minecraft/class_2826;method_12256(IIILnet/minecraft/class_2680;Z)Lnet/minecraft/class_2680;named setBlockStateLnet/minecraft/world/chunk/ChunkSection;setBlockState(IIILnet/minecraft/block/BlockState;Z)Lnet/minecraft/block/BlockState;
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector official cLcjx;c()Zintermediary method_12261Lnet/minecraft/class_2826;method_12261()Znamed isEmptyLnet/minecraft/world/chunk/ChunkSection;isEmpty()Z
-
isEmpty
- Mappings:
Namespace Name Mixin selector official aLcjx;a(Lcjx;)Zintermediary method_18090Lnet/minecraft/class_2826;method_18090(Lnet/minecraft/class_2826;)Znamed isEmptyLnet/minecraft/world/chunk/ChunkSection;isEmpty(Lnet/minecraft/world/chunk/ChunkSection;)Z
-
hasRandomTicks
public boolean hasRandomTicks()- Mappings:
Namespace Name Mixin selector official dLcjx;d()Zintermediary method_12262Lnet/minecraft/class_2826;method_12262()Znamed hasRandomTicksLnet/minecraft/world/chunk/ChunkSection;hasRandomTicks()Z
-
hasRandomBlockTicks
public boolean hasRandomBlockTicks()- Mappings:
Namespace Name Mixin selector official eLcjx;e()Zintermediary method_12263Lnet/minecraft/class_2826;method_12263()Znamed hasRandomBlockTicksLnet/minecraft/world/chunk/ChunkSection;hasRandomBlockTicks()Z
-
hasRandomFluidTicks
public boolean hasRandomFluidTicks()- Mappings:
Namespace Name Mixin selector official fLcjx;f()Zintermediary method_12264Lnet/minecraft/class_2826;method_12264()Znamed hasRandomFluidTicksLnet/minecraft/world/chunk/ChunkSection;hasRandomFluidTicks()Z
-
getYOffset
public int getYOffset()- Mappings:
Namespace Name Mixin selector official gLcjx;g()Iintermediary method_12259Lnet/minecraft/class_2826;method_12259()Inamed getYOffsetLnet/minecraft/world/chunk/ChunkSection;getYOffset()I
-
calculateCounts
public void calculateCounts()- Mappings:
Namespace Name Mixin selector official hLcjx;h()Vintermediary method_12253Lnet/minecraft/class_2826;method_12253()Vnamed calculateCountsLnet/minecraft/world/chunk/ChunkSection;calculateCounts()V
-
getContainer
- Mappings:
Namespace Name Mixin selector official iLcjx;i()Lckd;intermediary method_12265Lnet/minecraft/class_2826;method_12265()Lnet/minecraft/class_2841;named getContainerLnet/minecraft/world/chunk/ChunkSection;getContainer()Lnet/minecraft/world/chunk/PalettedContainer;
-
fromPacket
- Mappings:
Namespace Name Mixin selector official aLcjx;a(Lnw;)Vintermediary method_12258Lnet/minecraft/class_2826;method_12258(Lnet/minecraft/class_2540;)Vnamed fromPacketLnet/minecraft/world/chunk/ChunkSection;fromPacket(Lnet/minecraft/network/PacketByteBuf;)V
-
toPacket
- Mappings:
Namespace Name Mixin selector official bLcjx;b(Lnw;)Vintermediary method_12257Lnet/minecraft/class_2826;method_12257(Lnet/minecraft/class_2540;)Vnamed toPacketLnet/minecraft/world/chunk/ChunkSection;toPacket(Lnet/minecraft/network/PacketByteBuf;)V
-
getPacketSize
public int getPacketSize()- Mappings:
Namespace Name Mixin selector official jLcjx;j()Iintermediary method_12260Lnet/minecraft/class_2826;method_12260()Inamed getPacketSizeLnet/minecraft/world/chunk/ChunkSection;getPacketSize()I
-
hasAny
- Mappings:
Namespace Name Mixin selector official aLcjx;a(Ljava/util/function/Predicate;)Zintermediary method_19523Lnet/minecraft/class_2826;method_19523(Ljava/util/function/Predicate;)Znamed hasAnyLnet/minecraft/world/chunk/ChunkSection;hasAny(Ljava/util/function/Predicate;)Z
-