Class EnchantingTableMock

All Implemented Interfaces:
BlockState, EnchantingTable, TileState, Metadatable, Nameable, PersistentDataHolder

public class EnchantingTableMock extends TileStateMock implements EnchantingTable
  • Constructor Details

    • EnchantingTableMock

      public EnchantingTableMock(@NotNull @NotNull Material material)
    • EnchantingTableMock

      protected EnchantingTableMock(@NotNull @NotNull Block block)
    • EnchantingTableMock

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

    • getSnapshot

      @NotNull public @NotNull BlockState getSnapshot()
      Description copied from class: BlockStateMock
      This returns a copy of this BlockStateMock. Inheritents of this class should override this method!
      Specified by:
      getSnapshot in class TileStateMock
      Returns:
      A snapshot of this BlockStateMock.
    • customName

      @Nullable public @Nullable net.kyori.adventure.text.Component customName()
      Specified by:
      customName in interface Nameable
    • customName

      public void customName(@Nullable @Nullable net.kyori.adventure.text.Component customName)
      Specified by:
      customName in interface Nameable
    • getCustomName

      @Nullable public @Nullable String getCustomName()
      Specified by:
      getCustomName in interface Nameable
    • setCustomName

      public void setCustomName(@Nullable @Nullable String name)
      Specified by:
      setCustomName in interface Nameable