Class BarrelMock

All Implemented Interfaces:
LockableTileState, Barrel, BlockState, Container, Lidded, Lockable, TileState, BlockInventoryHolder, InventoryHolder, Lootable, Metadatable, Nameable, PersistentDataHolder

public class BarrelMock extends ContainerMock implements Barrel
Mock implementation of a Barrel.
See Also:
  • Constructor Details

    • BarrelMock

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

      protected BarrelMock(@NotNull @NotNull Block block)
      Constructs a new BarrelMock for the provided Block. Only supports Material.BARREL
      Parameters:
      block - The block this state is for.
    • BarrelMock

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