Class EndGatewayMock

All Implemented Interfaces:
org.bukkit.block.BlockState, org.bukkit.block.EndGateway, org.bukkit.block.TileState, org.bukkit.metadata.Metadatable, org.bukkit.persistence.PersistentDataHolder

public class EndGatewayMock extends TileStateMock implements org.bukkit.block.EndGateway
  • Constructor Details

    • EndGatewayMock

      public EndGatewayMock(@NotNull @NotNull org.bukkit.Material material)
    • EndGatewayMock

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

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

    • getSnapshot

      @NotNull public @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!
      Specified by:
      getSnapshot in class TileStateMock
      Returns:
      A snapshot of this BlockStateMock.
    • getExitLocation

      @Nullable public @Nullable org.bukkit.Location getExitLocation()
      Specified by:
      getExitLocation in interface org.bukkit.block.EndGateway
    • setExitLocation

      public void setExitLocation(@Nullable @Nullable org.bukkit.Location location)
      Specified by:
      setExitLocation in interface org.bukkit.block.EndGateway
    • isExactTeleport

      public boolean isExactTeleport()
      Specified by:
      isExactTeleport in interface org.bukkit.block.EndGateway
    • setExactTeleport

      public void setExactTeleport(boolean exact)
      Specified by:
      setExactTeleport in interface org.bukkit.block.EndGateway
    • getAge

      public long getAge()
      Specified by:
      getAge in interface org.bukkit.block.EndGateway
    • setAge

      public void setAge(long age)
      Specified by:
      setAge in interface org.bukkit.block.EndGateway