Package dev.linwood.itemmods.api.block
Class CustomBlock
- java.lang.Object
-
- dev.linwood.itemmods.api.block.CustomBlock
-
- All Implemented Interfaces:
CustomElement<BlockAsset>
public class CustomBlock extends java.lang.Object implements CustomElement<BlockAsset>
-
-
Constructor Summary
Constructors Constructor Description CustomBlock(@NotNull org.bukkit.block.Block block)
CustomBlock(org.bukkit.Location location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
breakBlock()
void
breakBlock(org.bukkit.entity.Player player)
void
configure()
Configure the PersistentTagContainer to the default values@NotNull org.bukkit.block.Block
getBlock()
@Nullable BlockAsset
getConfig()
@NotNull java.lang.String
getData()
org.bukkit.Location
getLocation()
@Nullable PackObject
getPackObject()
void
send(org.bukkit.entity.Player player)
void
setData(@NotNull java.lang.String data)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface dev.linwood.itemmods.api.CustomElement
isCustom
-
-
-
-
Method Detail
-
getConfig
@Nullable public @Nullable BlockAsset getConfig()
- Specified by:
getConfig
in interfaceCustomElement<BlockAsset>
-
getLocation
public org.bukkit.Location getLocation()
-
getData
@NotNull public @NotNull java.lang.String getData()
- Specified by:
getData
in interfaceCustomElement<BlockAsset>
-
setData
public void setData(@NotNull @NotNull java.lang.String data)
- Specified by:
setData
in interfaceCustomElement<BlockAsset>
-
breakBlock
public void breakBlock(org.bukkit.entity.Player player)
-
breakBlock
public void breakBlock()
-
getBlock
@NotNull public @NotNull org.bukkit.block.Block getBlock()
-
configure
public void configure()
Configure the PersistentTagContainer to the default values- Specified by:
configure
in interfaceCustomElement<BlockAsset>
-
getPackObject
@Nullable public @Nullable PackObject getPackObject()
- Specified by:
getPackObject
in interfaceCustomElement<BlockAsset>
-
send
public void send(org.bukkit.entity.Player player) throws java.io.IOException
- Throws:
java.io.IOException
-
-