Class ContainerMock

All Implemented Interfaces:
LockableTileState, BlockState, Container, Lockable, TileState, BlockInventoryHolder, InventoryHolder, Metadatable, Nameable, PersistentDataHolder
Direct Known Subclasses:
AbstractFurnaceMock, BarrelMock, BrewingStandMock, ChestMock, DispenserMock, DropperMock, HopperMock, LecternMock, ShulkerBoxMock

public abstract class ContainerMock extends TileStateMock implements Container
Mock implementation of a Container.
See Also:
  • Constructor Details

    • ContainerMock

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

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

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