Class BlockEvent

java.lang.Object
net.minecraft.server.world.BlockEvent

public class BlockEvent
extends Object
  • Field Details

    • pos

      private final BlockPos pos
    • block

      private final Block block
    • type

      private final int type
    • data

      private final int data
  • Constructor Details

    • BlockEvent

      public BlockEvent​(BlockPos pos, Block block, int type, int data)
  • Method Details

    • getPos

      public BlockPos getPos()
    • getBlock

      public Block getBlock()
    • getType

      public int getType()
    • getData

      public int getData()
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object