Class BlockStateMock

java.lang.Object
be.seeseemelk.mockbukkit.block.state.BlockStateMock
All Implemented Interfaces:
BlockState, Metadatable
Direct Known Subclasses:
TileStateMock

public class BlockStateMock extends Object implements BlockState
Mock implementation of a BlockState. Also manages the creation of new BlockStates with the appropriate mock class.
  • Constructor Details

    • BlockStateMock

      public BlockStateMock(@NotNull @NotNull Material material)
      Constructs a new BlockStateMock for the provided Material.
      Parameters:
      material - The material this state is for.
    • BlockStateMock

      protected BlockStateMock(@NotNull @NotNull Block block)
      Constructs a new BlockStateMock for the provided Block.
      Parameters:
      block - The block this state is for.
    • BlockStateMock

      protected BlockStateMock(@NotNull @NotNull BlockStateMock state)
      Constructs a new BlockStateMock by cloning the data from an existing one.
      Parameters:
      state - The state to clone.
  • Method Details