java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.teleporter.AbstractTeleporterPlate
All Implemented Interfaces:
Placeable
Direct Known Subclasses:
PersonalActivationPlate, SharedActivationPlate

public abstract class AbstractTeleporterPlate extends SlimefunItem
The AbstractTeleporterPlate is the abstract super class for our teleporter activation plates.
Author:
TheBusyBiscuit
See Also:
  • Constructor Details

  • Method Details

    • hasAccess

      public abstract boolean hasAccess(@Nonnull Player p, @Nonnull Block block)
      This method checks whether the given Player is allowed to activate the Teleporter.
      Parameters:
      p - The Player who stepped onto this plate
      block - The actual Block of this activation plate
      Returns:
      Whether the Player can access the Teleporter