Class StargateController

java.lang.Object
io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem
io.github.addoncommunity.galactifun.base.items.StargateController
All Implemented Interfaces:
io.github.thebusybiscuit.slimefun5.core.attributes.Placeable, org.bukkit.event.Listener

public final class StargateController extends io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem implements org.bukkit.event.Listener
  • Field Summary

    Fields inherited from class io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem

    addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench
  • Constructor Summary

    Constructors
    Constructor
    Description
    StargateController(io.github.thebusybiscuit.slimefun5.api.items.ItemGroup category, io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun5.api.recipes.RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Optional<List<org.bukkit.block.Block>>
    getPortalBlocks(org.bukkit.block.Block b)
     
    static Optional<List<org.bukkit.block.Block>>
    getRingBlocks(org.bukkit.block.Block b)
     
    static boolean
    isPartOfStargate(org.bukkit.block.Block b)
     
    static void
    lockBlocks(org.bukkit.block.Block controller, boolean lock)
     
    void
    onGateBreak(org.bukkit.event.block.BlockBreakEvent e)
     
    void
    onUsePortal(com.destroystokyo.paper.event.player.PlayerTeleportEndGatewayEvent e)
     

    Methods inherited from class io.github.thebusybiscuit.slimefun5.api.items.SlimefunItem

    addItemHandler, addItemSetting, addOfficialWikipage, bakeTranslatedDisplay, callItemHandler, canUse, decorateBakedTemplate, equals, error, getAddon, getBlockTicker, getById, getByItem, getByItem, getDrops, getDrops, getGuideType, getHandlers, getId, getItem, getItemGroup, getItemName, getItemSetting, getItemSettings, getOptionalById, getOptionalByItem, getRecipe, getRecipeOutput, getRecipeType, getResearch, getState, getWikipage, hashCode, hasResearch, info, isDisabled, isDisabledIn, isDisenchantable, isEnchantable, isHidden, isItem, isTicking, isUseableInWorkbench, load, postRegister, preRegister, register, sendDeprecationWarning, setGuideType, setHidden, setItemGroup, setRecipe, setRecipeOutput, setRecipeType, setResearch, setUseableInWorkbench, setWikiText, toString, warn

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.github.thebusybiscuit.slimefun5.core.attributes.Placeable

    useVanillaBlockBreaking
  • Constructor Details

    • StargateController

      public StargateController(io.github.thebusybiscuit.slimefun5.api.items.ItemGroup category, io.github.thebusybiscuit.slimefun5.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun5.api.recipes.RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe)
  • Method Details

    • isPartOfStargate

      public static boolean isPartOfStargate(@Nonnull org.bukkit.block.Block b)
    • getRingBlocks

      @Nonnull public static Optional<List<org.bukkit.block.Block>> getRingBlocks(@Nonnull org.bukkit.block.Block b)
    • getPortalBlocks

      @Nonnull public static Optional<List<org.bukkit.block.Block>> getPortalBlocks(@Nonnull org.bukkit.block.Block b)
    • lockBlocks

      public static void lockBlocks(org.bukkit.block.Block controller, boolean lock)
    • onGateBreak

      public void onGateBreak(org.bukkit.event.block.BlockBreakEvent e)
    • onUsePortal

      public void onUsePortal(com.destroystokyo.paper.event.player.PlayerTeleportEndGatewayEvent e)