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 CustomBlockcreate(org.bukkit.Location location, PackObject packObject, @Nullable org.bukkit.entity.Player player)CustomBlockfromBlock(org.bukkit.block.Block block)CustomBlockfromLocation(org.bukkit.Location location)BlockAssetgetAssetByKey(java.lang.String key)static CustomBlockManagergetInstance()voidregisterListener() 
 - 
 
- 
- 
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
 
 - 
 
 -