Class BlockMock

java.lang.Object
be.seeseemelk.mockbukkit.block.BlockMock
All Implemented Interfaces:
net.kyori.adventure.translation.Translatable, Block, Metadatable, Translatable

public class BlockMock extends Object implements Block
Mock implementation of a Block.
  • Constructor Details

    • BlockMock

      public BlockMock()
      Creates a basic block made of air.
    • BlockMock

      public BlockMock(@NotNull @NotNull Location location)
      Creates a basic block made of air at a certain location.
      Parameters:
      location - The location of the block.
    • BlockMock

      public BlockMock(@NotNull @NotNull Material material)
      Creates a basic block with a given material.
      Parameters:
      material - The material to give the block.
    • BlockMock

      public BlockMock(@NotNull @NotNull Material material, @Nullable @Nullable Location location)
      Creates a basic block with a given material that is also linked to a specific location.
      Parameters:
      material - The material of the block.
      location - The location of the block. Can be null if not needed.
  • Method Details