Class Grid

java.lang.Object
net.minecraft.world.Grid

public class Grid extends Object
Mappings:
Namespace Name
official cpb
intermediary net/minecraft/class_9514
named net/minecraft/world/Grid
  • Field Details

    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,Grid> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lcpb;a:Lzc;
      intermediary field_50518 Lnet/minecraft/class_9514;field_50518:Lnet/minecraft/class_9139;
      named PACKET_CODEC Lnet/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 b Lcpb;b:I
      intermediary field_50519 Lnet/minecraft/class_9514;field_50519:I
      named field_50519 Lnet/minecraft/world/Grid;field_50519:I
    • AIR

      private static final BlockState AIR
      Mappings:
      Namespace Name Mixin selector
      official c Lcpb;c:Ldtc;
      intermediary field_50520 Lnet/minecraft/class_9514;field_50520:Lnet/minecraft/class_2680;
      named AIR Lnet/minecraft/world/Grid;AIR:Lnet/minecraft/block/BlockState;
    • states

      final BlockState[] states
      Mappings:
      Namespace Name Mixin selector
      official d Lcpb;d:[Ldtc;
      intermediary field_50521 Lnet/minecraft/class_9514;field_50521:[Lnet/minecraft/class_2680;
      named states Lnet/minecraft/world/Grid;states:[Lnet/minecraft/block/BlockState;
    • tickables

      final List<BlockPos> tickables
      Mappings:
      Namespace Name Mixin selector
      official e Lcpb;e:Ljava/util/List;
      intermediary field_50522 Lnet/minecraft/class_9514;field_50522:Ljava/util/List;
      named tickables Lnet/minecraft/world/Grid;tickables:Ljava/util/List;
    • xSize

      final int xSize
      Mappings:
      Namespace Name Mixin selector
      official f Lcpb;f:I
      intermediary field_50523 Lnet/minecraft/class_9514;field_50523:I
      named xSize Lnet/minecraft/world/Grid;xSize:I
    • ySize

      final int ySize
      Mappings:
      Namespace Name Mixin selector
      official g Lcpb;g:I
      intermediary field_50524 Lnet/minecraft/class_9514;field_50524:I
      named ySize Lnet/minecraft/world/Grid;ySize:I
    • zSize

      final int zSize
      Mappings:
      Namespace Name Mixin selector
      official h Lcpb;h:I
      intermediary field_50525 Lnet/minecraft/class_9514;field_50525:I
      named zSize Lnet/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)V
      intermediary <init> Lnet/minecraft/class_9514;<init>([Lnet/minecraft/class_2680;Ljava/util/List;III)V
      named <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)V
      intermediary <init> Lnet/minecraft/class_9514;<init>(III)V
      named <init> Lnet/minecraft/world/Grid;<init>(III)V
  • Method Details

    • setBlockStateAt

      public void setBlockStateAt(int x, int y, int z, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lcpb;a(IIILdtc;)V
      intermediary method_58972 Lnet/minecraft/class_9514;method_58972(IIILnet/minecraft/class_2680;)V
      named setBlockStateAt Lnet/minecraft/world/Grid;setBlockStateAt(IIILnet/minecraft/block/BlockState;)V
    • addPosition

      public void addPosition(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lcpb;a(Lir;)V
      intermediary method_58975 Lnet/minecraft/class_9514;method_58975(Lnet/minecraft/class_2338;)V
      named addPosition Lnet/minecraft/world/Grid;addPosition(Lnet/minecraft/util/math/BlockPos;)V
    • tick

      public void tick(World world, Vec3d pos, Direction movementDirection)
      Mappings:
      Namespace Name Mixin selector
      official a Lcpb;a(Ldca;Lewu;Liw;)V
      intermediary method_58973 Lnet/minecraft/class_9514;method_58973(Lnet/minecraft/class_1937;Lnet/minecraft/class_243;Lnet/minecraft/class_2350;)V
      named tick Lnet/minecraft/world/Grid;tick(Lnet/minecraft/world/World;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Direction;)V
    • getBlockState

      public BlockState getBlockState(int x, int y, int z)
      Mappings:
      Namespace Name Mixin selector
      official a Lcpb;a(III)Ldtc;
      intermediary method_58971 Lnet/minecraft/class_9514;method_58971(III)Lnet/minecraft/class_2680;
      named getBlockState Lnet/minecraft/world/Grid;getBlockState(III)Lnet/minecraft/block/BlockState;
    • getBlockState

      public BlockState getBlockState(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official b Lcpb;b(Lir;)Ldtc;
      intermediary method_58980 Lnet/minecraft/class_9514;method_58980(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      named getBlockState Lnet/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 b Lcpb;b(III)I
      intermediary method_58979 Lnet/minecraft/class_9514;method_58979(III)I
      named getIndexForPos Lnet/minecraft/world/Grid;getIndexForPos(III)I
    • getXSize

      public int getXSize()
      Mappings:
      Namespace Name Mixin selector
      official a Lcpb;a()I
      intermediary method_58970 Lnet/minecraft/class_9514;method_58970()I
      named getXSize Lnet/minecraft/world/Grid;getXSize()I
    • getYSize

      public int getYSize()
      Mappings:
      Namespace Name Mixin selector
      official b Lcpb;b()I
      intermediary method_58978 Lnet/minecraft/class_9514;method_58978()I
      named getYSize Lnet/minecraft/world/Grid;getYSize()I
    • getZSize

      public int getZSize()
      Mappings:
      Namespace Name Mixin selector
      official c Lcpb;c()I
      intermediary method_58981 Lnet/minecraft/class_9514;method_58981()I
      named getZSize Lnet/minecraft/world/Grid;getZSize()I
    • copy

      public Grid copy()
      Mappings:
      Namespace Name Mixin selector
      official d Lcpb;d()Lcpb;
      intermediary method_58982 Lnet/minecraft/class_9514;method_58982()Lnet/minecraft/class_9514;
      named copy Lnet/minecraft/world/Grid;copy()Lnet/minecraft/world/Grid;
    • method_58976

      public void method_58976(BlockPos pos, World world)
      Mappings:
      Namespace Name Mixin selector
      official a Lcpb;a(Lir;Ldca;)V
      intermediary method_58976 Lnet/minecraft/class_9514;method_58976(Lnet/minecraft/class_2338;Lnet/minecraft/class_1937;)V
      named method_58976 Lnet/minecraft/world/Grid;method_58976(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/World;)V
    • readFromNbt

      public static Grid readFromNbt(RegistryEntryLookup<Block> blockRegistryLookup, NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lcpb;a(Ljb;Luk;)Lcpb;
      intermediary method_58977 Lnet/minecraft/class_9514;method_58977(Lnet/minecraft/class_7871;Lnet/minecraft/class_2487;)Lnet/minecraft/class_9514;
      named readFromNbt Lnet/minecraft/world/Grid;readFromNbt(Lnet/minecraft/registry/RegistryEntryLookup;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/world/Grid;
    • writeToNbt

      public NbtElement writeToNbt()
      Mappings:
      Namespace Name Mixin selector
      official e Lcpb;e()Lvh;
      intermediary method_58983 Lnet/minecraft/class_9514;method_58983()Lnet/minecraft/class_2520;
      named writeToNbt Lnet/minecraft/world/Grid;writeToNbt()Lnet/minecraft/nbt/NbtElement;