Class TileStateMock

java.lang.Object
be.seeseemelk.mockbukkit.block.state.BlockStateMock
be.seeseemelk.mockbukkit.block.state.TileStateMock
All Implemented Interfaces:
org.bukkit.block.BlockState, org.bukkit.block.TileState, org.bukkit.metadata.Metadatable, org.bukkit.persistence.PersistentDataHolder
Direct Known Subclasses:
BannerMock, BeaconMock, BedMock, BeehiveMock, BellMock, CampfireMock, CommandBlockMock, ComparatorMock, ConduitMock, ContainerMock, CreatureSpawnerMock, DaylightDetectorMock, EnchantingTableMock, EnderChestMock, EndGatewayMock, JigsawMock, JukeboxMock, SculkCatalystMock, SculkSensorMock, SculkShriekerMock, SignMock, SkullMock, StructureMock

public abstract class TileStateMock extends BlockStateMock implements org.bukkit.block.TileState
This BlockStateMock represents a TileState which is capable of storing persistent data using a PersistentDataContainerMock.
  • Constructor Details

    • TileStateMock

      protected TileStateMock(@NotNull @NotNull org.bukkit.Material material)
    • TileStateMock

      protected TileStateMock(@NotNull @NotNull org.bukkit.block.Block block)
    • TileStateMock

      protected TileStateMock(@NotNull @NotNull TileStateMock state)
  • Method Details

    • getPersistentDataContainer

      @NotNull public @NotNull org.bukkit.persistence.PersistentDataContainer getPersistentDataContainer()
      Specified by:
      getPersistentDataContainer in interface org.bukkit.persistence.PersistentDataHolder
      Specified by:
      getPersistentDataContainer in interface org.bukkit.block.TileState
    • isSnapshot

      public boolean isSnapshot()
      Specified by:
      isSnapshot in interface org.bukkit.block.TileState
    • getSnapshot

      @NotNull public abstract @NotNull org.bukkit.block.BlockState getSnapshot()
      Description copied from class: BlockStateMock
      This returns a copy of this BlockStateMock. Inheritents of this class should override this method!
      Overrides:
      getSnapshot in class BlockStateMock
      Returns:
      A snapshot of this BlockStateMock.