Class HardenedGlass
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.blocks.WitherProofBlock
io.github.thebusybiscuit.slimefun4.implementation.items.blocks.HardenedGlass
- All Implemented Interfaces:
ItemAttribute,Placeable,WitherProof
HardenedGlass is a special kind of block which cannot be destroyed by explosions.
It is partially WitherProof, as it cannot be destroyed through explosions caused by
a WitherSkull. However the Wither is still able to destroy it directly.- Author:
- TheBusyBiscuit
- See Also:
-
Field Summary
Fields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsConstructorDescriptionHardenedGlass(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe, org.bukkit.inventory.ItemStack recipeOutput) -
Method Summary
Modifier and TypeMethodDescriptionvoidonAttackEvent(org.bukkit.event.entity.EntityChangeBlockEvent event) This method is called when aWithertried to attack the block.Methods inherited from class io.github.thebusybiscuit.slimefun4.implementation.items.blocks.WitherProofBlock
onAttackMethods inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addItemHandler, addItemSetting, addOfficialWikipage, addWikiPage, callItemHandler, canUse, disable, enable, equals, error, getAddon, getBlockTicker, getById, getByItem, getDrops, getDrops, getHandlers, getId, getItem, getItemGroup, getItemName, getItemSetting, getItemSettings, getOptionalById, getOptionalByItem, getRecipe, getRecipeOutput, getRecipeType, getResearch, getState, getWikipage, hashCode, hasResearch, info, isDisabled, isDisabledIn, isDisenchantable, isEnchantable, isHidden, isItem, isItemStackImmutable, isTicking, isUseableInWorkbench, load, loadDataByDefault, postRegister, preRegister, register, sendDeprecationWarning, setHidden, setItemGroup, setRecipe, setRecipeOutput, setRecipeType, setResearch, setUseableInWorkbench, toString, warnMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.ItemAttribute
getIdMethods inherited from interface io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
useVanillaBlockBreaking
-
Constructor Details
-
HardenedGlass
@ParametersAreNonnullByDefault public HardenedGlass(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, org.bukkit.inventory.ItemStack[] recipe, org.bukkit.inventory.ItemStack recipeOutput)
-
-
Method Details
-
onAttackEvent
public void onAttackEvent(org.bukkit.event.entity.EntityChangeBlockEvent event) Description copied from interface:WitherProofThis method is called when aWithertried to attack the block. You can use this method to handle theEntityChangeBlockEvent.- Parameters:
event- TheEntityChangeBlockEventwhich was involved.
-