Class PersonalActivationPlate
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.PersonalActivationPlate
- All Implemented Interfaces:
Placeable
The
PersonalActivationPlate
is a teleporter activation plate
to which only the Player
who placed it down 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
ConstructorDescriptionPersonalActivationPlate
(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) -
Method Summary
Modifier and TypeMethodDescriptionboolean
This method checks whether the givenPlayer
is allowed to activate theTeleporter
.Methods inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addItemHandler, addItemSetting, addOfficialWikipage, callItemHandler, canUse, 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, warn
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
useVanillaBlockBreaking
-
Constructor Details
-
PersonalActivationPlate
@ParametersAreNonnullByDefault public PersonalActivationPlate(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe)
-
-
Method Details
-
hasAccess
Description copied from class:AbstractTeleporterPlate
This method checks whether the givenPlayer
is allowed to activate theTeleporter
.- Specified by:
hasAccess
in classAbstractTeleporterPlate
- Parameters:
p
- ThePlayer
who stepped onto this plateb
- The actualBlock
of this activation plate- Returns:
- Whether the
Player
can access theTeleporter
-