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
Mock implementation of a EndGateway.
See Also:
  • Constructor Details

    • EndGatewayMock

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

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

      protected EndGatewayMock(@NotNull @NotNull EndGatewayMock state)
      Constructs a new EndGatewayMock by cloning the data from an existing one.
      Parameters:
      state - The state to clone.
  • 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