Class SharedActivationPlate
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.teleporter.AbstractTeleporterPlate
io.github.thebusybiscuit.slimefun4.implementation.items.teleporter.SharedActivationPlate
- All Implemented Interfaces:
Placeable
The
SharedActivationPlate is a teleporter activation plate
to which everyone has access.- Author:
- TheBusyBiscuit
- See Also:
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsConstructorDescriptionSharedActivationPlate(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasAccess(org.bukkit.entity.Player p, org.bukkit.block.Block b) This method checks whether the givenPlayeris allowed to activate theTeleporter.booleanShould load theSlimefunBlockDataby default.Methods inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addItemHandler, addItemSetting, addOfficialWikipage, addWikiPage, callItemHandler, canUse, disable, enable, equals, error, getAddon, getBlockTicker, getById, getByItem, getDrops, getDrops, getHandlers, getId, getItem, getItemGroup, getItemName, getItemSetting, getItemSettings, getOptionalById, getOptionalByItem, getRecipe, getRecipeOutput, getRecipeType, getResearch, getState, getWikipage, hashCode, hasResearch, info, isDisabled, isDisabledIn, isDisenchantable, isEnchantable, isHidden, isItem, isItemStackImmutable, isTicking, isUseableInWorkbench, load, postRegister, preRegister, register, sendDeprecationWarning, setHidden, setItemGroup, setRecipe, setRecipeOutput, setRecipeType, setResearch, setUseableInWorkbench, toString, warnMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
useVanillaBlockBreaking
-
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:AbstractTeleporterPlateThis method checks whether the givenPlayeris allowed to activate theTeleporter.- Specified by:
hasAccessin classAbstractTeleporterPlate- Parameters:
p- ThePlayerwho stepped onto this plateb- The actualBlockof this activation plate- Returns:
- Whether the
Playercan access theTeleporter
-
loadDataByDefault
public boolean loadDataByDefault()Description copied from class:SlimefunItemShould load theSlimefunBlockDataby default. If return false, only the item withBlockTickerwill be loaded withChunkLoadEvent.- Overrides:
loadDataByDefaultin classSlimefunItem- Returns:
- true if the data should be loaded by default, false otherwise
-