Package dev.linwood.itemmods.api.block
Class CustomBlockManager
- java.lang.Object
-
- dev.linwood.itemmods.api.block.CustomBlockManager
-
public class CustomBlockManager extends Object
-
-
Constructor Summary
Constructors Constructor Description CustomBlockManager()
-
Method Summary
All 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(String key)
-
-
-
Method Detail
-
getAssetByKey
public BlockAsset getAssetByKey(String key) throws UnsupportedOperationException
- Throws:
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)
- 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!
-
-