Package net.minecraft.world
Class Grid
java.lang.Object
net.minecraft.world.Grid
- Mappings:
Namespace Name official cpbintermediary net/minecraft/class_9514named net/minecraft/world/Grid
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final BlockStateprivate static final intstatic final PacketCodec<RegistryByteBuf, Grid> (package private) final BlockState[](package private) final int(package private) final int(package private) final int -
Constructor Summary
ConstructorsConstructorDescriptionGrid(int xSize, int ySize, int zSize) Grid(BlockState[] states, List<BlockPos> tickables, int xSize, int ySize, int zSize) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPosition(BlockPos pos) copy()getBlockState(int x, int y, int z) getBlockState(BlockPos pos) private intgetIndexForPos(int x, int y, int z) intgetXSize()intgetYSize()intgetZSize()voidmethod_58976(BlockPos pos, World world) static GridreadFromNbt(RegistryEntryLookup<Block> blockRegistryLookup, NbtCompound nbt) voidsetBlockStateAt(int x, int y, int z, BlockState state) void
-
Field Details
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector official aLcpb;a:Lzc;intermediary field_50518Lnet/minecraft/class_9514;field_50518:Lnet/minecraft/class_9139;named PACKET_CODECLnet/minecraft/world/Grid;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
-
field_50519
private static final int field_50519- See Also:
- Mappings:
Namespace Name Mixin selector official bLcpb;b:Iintermediary field_50519Lnet/minecraft/class_9514;field_50519:Inamed field_50519Lnet/minecraft/world/Grid;field_50519:I
-
AIR
- Mappings:
Namespace Name Mixin selector official cLcpb;c:Ldtc;intermediary field_50520Lnet/minecraft/class_9514;field_50520:Lnet/minecraft/class_2680;named AIRLnet/minecraft/world/Grid;AIR:Lnet/minecraft/block/BlockState;
-
states
- Mappings:
Namespace Name Mixin selector official dLcpb;d:[Ldtc;intermediary field_50521Lnet/minecraft/class_9514;field_50521:[Lnet/minecraft/class_2680;named statesLnet/minecraft/world/Grid;states:[Lnet/minecraft/block/BlockState;
-
tickables
- Mappings:
Namespace Name Mixin selector official eLcpb;e:Ljava/util/List;intermediary field_50522Lnet/minecraft/class_9514;field_50522:Ljava/util/List;named tickablesLnet/minecraft/world/Grid;tickables:Ljava/util/List;
-
xSize
final int xSize- Mappings:
Namespace Name Mixin selector official fLcpb;f:Iintermediary field_50523Lnet/minecraft/class_9514;field_50523:Inamed xSizeLnet/minecraft/world/Grid;xSize:I
-
ySize
final int ySize- Mappings:
Namespace Name Mixin selector official gLcpb;g:Iintermediary field_50524Lnet/minecraft/class_9514;field_50524:Inamed ySizeLnet/minecraft/world/Grid;ySize:I
-
zSize
final int zSize- Mappings:
Namespace Name Mixin selector official hLcpb;h:Iintermediary field_50525Lnet/minecraft/class_9514;field_50525:Inamed zSizeLnet/minecraft/world/Grid;zSize:I
-
-
Constructor Details
-
Grid
Grid(BlockState[] states, List<BlockPos> tickables, int xSize, int ySize, int zSize) - Mappings:
Namespace Name Mixin selector official <init>Lcpb;<init>([Ldtc;Ljava/util/List;III)Vintermediary <init>Lnet/minecraft/class_9514;<init>([Lnet/minecraft/class_2680;Ljava/util/List;III)Vnamed <init>Lnet/minecraft/world/Grid;<init>([Lnet/minecraft/block/BlockState;Ljava/util/List;III)V
-
Grid
public Grid(int xSize, int ySize, int zSize) - Mappings:
Namespace Name Mixin selector official <init>Lcpb;<init>(III)Vintermediary <init>Lnet/minecraft/class_9514;<init>(III)Vnamed <init>Lnet/minecraft/world/Grid;<init>(III)V
-
-
Method Details
-
setBlockStateAt
- Mappings:
Namespace Name Mixin selector official aLcpb;a(IIILdtc;)Vintermediary method_58972Lnet/minecraft/class_9514;method_58972(IIILnet/minecraft/class_2680;)Vnamed setBlockStateAtLnet/minecraft/world/Grid;setBlockStateAt(IIILnet/minecraft/block/BlockState;)V
-
addPosition
- Mappings:
Namespace Name Mixin selector official aLcpb;a(Lir;)Vintermediary method_58975Lnet/minecraft/class_9514;method_58975(Lnet/minecraft/class_2338;)Vnamed addPositionLnet/minecraft/world/Grid;addPosition(Lnet/minecraft/util/math/BlockPos;)V
-
tick
- Mappings:
Namespace Name Mixin selector official aLcpb;a(Ldca;Lewu;Liw;)Vintermediary method_58973Lnet/minecraft/class_9514;method_58973(Lnet/minecraft/class_1937;Lnet/minecraft/class_243;Lnet/minecraft/class_2350;)Vnamed tickLnet/minecraft/world/Grid;tick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Direction;)V
-
getBlockState
- Mappings:
Namespace Name Mixin selector official aLcpb;a(III)Ldtc;intermediary method_58971Lnet/minecraft/class_9514;method_58971(III)Lnet/minecraft/class_2680;named getBlockStateLnet/minecraft/world/Grid;getBlockState(III)Lnet/minecraft/block/BlockState;
-
getBlockState
- Mappings:
Namespace Name Mixin selector official bLcpb;b(Lir;)Ldtc;intermediary method_58980Lnet/minecraft/class_9514;method_58980(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;named getBlockStateLnet/minecraft/world/Grid;getBlockState(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
-
getIndexForPos
private int getIndexForPos(int x, int y, int z) - Mappings:
Namespace Name Mixin selector official bLcpb;b(III)Iintermediary method_58979Lnet/minecraft/class_9514;method_58979(III)Inamed getIndexForPosLnet/minecraft/world/Grid;getIndexForPos(III)I
-
getXSize
public int getXSize()- Mappings:
Namespace Name Mixin selector official aLcpb;a()Iintermediary method_58970Lnet/minecraft/class_9514;method_58970()Inamed getXSizeLnet/minecraft/world/Grid;getXSize()I
-
getYSize
public int getYSize()- Mappings:
Namespace Name Mixin selector official bLcpb;b()Iintermediary method_58978Lnet/minecraft/class_9514;method_58978()Inamed getYSizeLnet/minecraft/world/Grid;getYSize()I
-
getZSize
public int getZSize()- Mappings:
Namespace Name Mixin selector official cLcpb;c()Iintermediary method_58981Lnet/minecraft/class_9514;method_58981()Inamed getZSizeLnet/minecraft/world/Grid;getZSize()I
-
copy
- Mappings:
Namespace Name Mixin selector official dLcpb;d()Lcpb;intermediary method_58982Lnet/minecraft/class_9514;method_58982()Lnet/minecraft/class_9514;named copyLnet/minecraft/world/Grid;copy()Lnet/minecraft/world/Grid;
-
method_58976
- Mappings:
Namespace Name Mixin selector official aLcpb;a(Lir;Ldca;)Vintermediary method_58976Lnet/minecraft/class_9514;method_58976(Lnet/minecraft/class_2338;Lnet/minecraft/class_1937;)Vnamed method_58976Lnet/minecraft/world/Grid;method_58976(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/World;)V
-
readFromNbt
- Mappings:
Namespace Name Mixin selector official aLcpb;a(Ljb;Luk;)Lcpb;intermediary method_58977Lnet/minecraft/class_9514;method_58977(Lnet/minecraft/class_7871;Lnet/minecraft/class_2487;)Lnet/minecraft/class_9514;named readFromNbtLnet/minecraft/world/Grid;readFromNbt(Lnet/minecraft/registry/RegistryEntryLookup;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/world/Grid;
-
writeToNbt
- Mappings:
Namespace Name Mixin selector official eLcpb;e()Lvh;intermediary method_58983Lnet/minecraft/class_9514;method_58983()Lnet/minecraft/class_2520;named writeToNbtLnet/minecraft/world/Grid;writeToNbt()Lnet/minecraft/nbt/NbtElement;
-