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
ConstructorsConstructorDescriptionStargateController(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 TypeMethodDescriptiongetPortalBlocks(org.bukkit.block.Block b) getRingBlocks(org.bukkit.block.Block b) static booleanisPartOfStargate(org.bukkit.block.Block b) static voidlockBlocks(org.bukkit.block.Block controller, boolean lock) voidonGateBreak(org.bukkit.event.block.BlockBreakEvent e) voidonUsePortal(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, warnMethods 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
-
getPortalBlocks
-
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)
-