Package wtf.choco.locksecurity.api.key
Interface IKeyBuilderSmithed
- All Superinterfaces:
IKeyBuilder
public interface IKeyBuilderSmithed extends IKeyBuilder
An
IKeyBuilder
implementation for smithed keys.- Since:
- 3.0.0
- Author:
- Parker Hawke - Choco
-
Method Summary
Modifier and Type Method Description IKeyBuilderSmithed
breakOnUse()
Apply theKeyFlag.BREAK_ON_USE
flag to the built key.IKeyBuilderSmithed
hideBlockCoordinates()
Apply theKeyFlag.HIDE_BLOCK_COORDINATES
flag to the built key.IKeyBuilderSmithed
hideFlagLore()
Hide the lore from flags that would otherwise be applied on the built key.IKeyBuilderSmithed
hideFlagLore(boolean hide)
Hide the lore from flags that would otherwise be applied on the built key.IKeyBuilderSmithed
preventDuplication()
Apply theKeyFlag.PREVENT_DUPLICATION
flag to the built key.IKeyBuilderSmithed
preventMerging()
Apply theKeyFlag.PREVENT_MERGING
flag to the built key.IKeyBuilderSmithed
preventResetting()
Apply theKeyFlag.PREVENT_RESETTING
flag to the built key.IKeyBuilderSmithed
unlocks(Iterable<? extends ILockedBlock> blocks)
Add the specified blocks to the built key's unlockable blocks.IKeyBuilderSmithed
unlocks(org.bukkit.inventory.ItemStack key)
Copy the unlockable blocks from the supplied key.IKeyBuilderSmithed
unlocks(ILockedBlock block)
Add the specified block to the built key's unlockable blocks.IKeyBuilderSmithed
unlocks(ILockedBlock... blocks)
Add the specified blocks to the built key's unlockable blocks.IKeyBuilderSmithed
withFlag(KeyFlag flag)
Assign the specified flag to the built key.IKeyBuilderSmithed
withFlag(KeyFlag flag, boolean value)
Assign the specified flag to the built key.IKeyBuilderSmithed
withFlags(KeyFlag... flags)
Assign the specified flags to the built key.
-
Method Details
-
unlocks
Copy the unlockable blocks from the supplied key.- Parameters:
key
- the key whose unlockable blocks to copy. Must not be null- Returns:
- this instance. Allows for chained method calls
-
unlocks
Add the specified blocks to the built key's unlockable blocks.- Parameters:
blocks
- the blocks to unlock. Must not be null- Returns:
- this instance. Allows for chained method calls
-
unlocks
Add the specified blocks to the built key's unlockable blocks.- Parameters:
blocks
- the blocks to unlock. Must not be null- Returns:
- this instance. Allows for chained method calls
-
unlocks
Add the specified block to the built key's unlockable blocks.- Parameters:
block
- the block to unlock. Must not be null- Returns:
- this instance. Allows for chained method calls
-
withFlags
Assign the specified flags to the built key.- Parameters:
flags
- the flags to assign. Must not be null- Returns:
- this instance. Allows for chained method calls
-
withFlag
Assign the specified flag to the built key.- Parameters:
flag
- the flags to assignvalue
- the value to set for this flag- Returns:
- this instance. Allows for chained method calls
-
withFlag
Assign the specified flag to the built key.- Parameters:
flag
- the flag to assign. Must not be null- Returns:
- this instance. Allows for chained method calls
-
preventDuplication
Apply theKeyFlag.PREVENT_DUPLICATION
flag to the built key.- Returns:
- this instance. Allows for chained method calls
-
preventMerging
Apply theKeyFlag.PREVENT_MERGING
flag to the built key.- Returns:
- this instance. Allows for chained method calls
-
preventResetting
Apply theKeyFlag.PREVENT_RESETTING
flag to the built key.- Returns:
- this instance. Allows for chained method calls
-
breakOnUse
Apply theKeyFlag.BREAK_ON_USE
flag to the built key.- Returns:
- this instance. Allows for chained method calls
-
hideBlockCoordinates
Apply theKeyFlag.HIDE_BLOCK_COORDINATES
flag to the built key.- Returns:
- this instance. Allows for chained method calls
-
hideFlagLore
Hide the lore from flags that would otherwise be applied on the built key.- Parameters:
hide
- whether or not to hide the flag lore- Returns:
- this instance. Allows for chained method calls
-
hideFlagLore
Hide the lore from flags that would otherwise be applied on the built key.- Returns:
- this instance. Allows for chained method calls
-