All Implemented Interfaces:
Placeable

public class SharedActivationPlate extends AbstractTeleporterPlate
The SharedActivationPlate is a teleporter activation plate to which everyone has access.
Author:
TheBusyBiscuit
See Also:
  • Constructor Details

    • SharedActivationPlate

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

    • hasAccess

      @ParametersAreNonnullByDefault public boolean hasAccess(org.bukkit.entity.Player p, org.bukkit.block.Block b)
      Description copied from class: AbstractTeleporterPlate
      This method checks whether the given Player is allowed to activate the Teleporter.
      Specified by:
      hasAccess in class AbstractTeleporterPlate
      Parameters:
      p - The Player who stepped onto this plate
      b - The actual Block of this activation plate
      Returns:
      Whether the Player can access the Teleporter
    • loadDataByDefault

      public boolean loadDataByDefault()
      Description copied from class: SlimefunItem
      Should load the SlimefunBlockData by default. If return false, only the item with BlockTicker will be loaded with ChunkLoadEvent.
      Overrides:
      loadDataByDefault in class SlimefunItem
      Returns:
      true if the data should be loaded by default, false otherwise