Package ch.njol.skript.util
Class BlockInventoryHolder
java.lang.Object
ch.njol.skript.util.BlockStateBlock
ch.njol.skript.util.BlockInventoryHolder
- All Implemented Interfaces:
net.kyori.adventure.translation.Translatable
,org.bukkit.block.Block
,org.bukkit.inventory.InventoryHolder
,org.bukkit.metadata.Metadatable
public class BlockInventoryHolder
extends BlockStateBlock
implements org.bukkit.inventory.InventoryHolder
Main usage is
ExprInventoryInfo
This class allows Skript to return a block while being able to recognize it as InventoryHolder
,
You may only use this class if a expression's return type is an InventoryHolder
.-
Constructor Summary
-
Method Summary
Methods inherited from class ch.njol.skript.util.BlockStateBlock
applyBoneMeal, breakNaturally, breakNaturally, breakNaturally, breakNaturally, getBiome, getBlockData, getBlockPower, getBlockPower, getBoundingBox, getBreakSpeed, getChunk, getCollisionShape, getData, getDestroySpeed, getDestroySpeed, getDrops, getDrops, getDrops, getFace, getHumidity, getLightFromBlocks, getLightFromSky, getLightLevel, getLocation, getLocation, getMetadata, getPistonMoveReaction, getRelative, getRelative, getRelative, getSoundGroup, getState, getState, getTemperature, getTranslationKey, getType, getWorld, getX, getY, getZ, hasMetadata, isBlockFaceIndirectlyPowered, isBlockFacePowered, isBlockIndirectlyPowered, isBlockPowered, isBuildable, isBurnable, isCollidable, isEmpty, isLiquid, isPassable, isPreferredTool, isReplaceable, isSolid, isValidTool, rayTrace, removeMetadata, setBiome, setBlockData, setBlockData, setData, setMetadata, setType, setType, translationKey
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bukkit.block.Block
getBlockKey
-
Constructor Details
-
BlockInventoryHolder
public BlockInventoryHolder(org.bukkit.block.BlockState state)
-
-
Method Details
-
getInventory
public org.bukkit.inventory.Inventory getInventory()- Specified by:
getInventory
in interfaceorg.bukkit.inventory.InventoryHolder
-