Package dev.linwood.itemmods.api.block
Class CustomBlockManager
- java.lang.Object
-
- dev.linwood.itemmods.api.block.CustomBlockManager
-
public class CustomBlockManager extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomBlock
create(org.bukkit.Location location, PackObject packObject, @Nullable org.bukkit.entity.Player player)
CustomBlock
fromBlock(org.bukkit.block.Block block)
CustomBlock
fromLocation(org.bukkit.Location location)
BlockAsset
getAssetByKey(java.lang.String key)
static CustomBlockManager
getInstance()
void
registerListener()
-
-
-
Method Detail
-
getInstance
public static CustomBlockManager getInstance()
-
registerListener
public void registerListener()
-
getAssetByKey
public BlockAsset getAssetByKey(java.lang.String key) throws java.lang.UnsupportedOperationException
- Throws:
java.lang.UnsupportedOperationException
-
fromLocation
public CustomBlock fromLocation(org.bukkit.Location location)
-
fromBlock
public CustomBlock fromBlock(org.bukkit.block.Block block)
-
create
public CustomBlock create(org.bukkit.Location location, PackObject packObject, @Nullable @Nullable org.bukkit.entity.Player player) throws java.io.IOException
- Parameters:
location
- The location where the custom block will be placed!packObject
- The block config for the custom blockplayer
- The player who is placing the block- Returns:
- Returns if it was placed!
- Throws:
java.io.IOException
-
-