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

    • AbstractTeleporterPlate

      @ParametersAreNonnullByDefault protected AbstractTeleporterPlate(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe)
  • Method Details

    • hasAccess

      public abstract boolean hasAccess(@Nonnull org.bukkit.entity.Player p, @Nonnull org.bukkit.block.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