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 voidbreakBlock()voidbreakBlock(org.bukkit.entity.Player player)voidconfigure()Configure the PersistentTagContainer to the default values@NotNull org.bukkit.block.BlockgetBlock()@Nullable BlockAssetgetConfig()@NotNull java.lang.StringgetData()org.bukkit.LocationgetLocation()@Nullable PackObjectgetPackObject()voidsend(org.bukkit.entity.Player player)voidsetData(@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:
 getConfigin interfaceCustomElement<BlockAsset>
 
- 
getLocation
public org.bukkit.Location getLocation()
 
- 
getData
@NotNull public @NotNull java.lang.String getData()
- Specified by:
 getDatain interfaceCustomElement<BlockAsset>
 
- 
setData
public void setData(@NotNull @NotNull java.lang.String data)- Specified by:
 setDatain 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:
 configurein interfaceCustomElement<BlockAsset>
 
- 
getPackObject
@Nullable public @Nullable PackObject getPackObject()
- Specified by:
 getPackObjectin interfaceCustomElement<BlockAsset>
 
- 
send
public void send(org.bukkit.entity.Player player) throws java.io.IOException- Throws:
 java.io.IOException
 
 - 
 
 -