Class DisplayGroupBlock
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
dev.sefiraat.sefilib.slimefun.blocks.DisplayGroupBlock
- All Implemented Interfaces:
DisplayInteractable,io.github.thebusybiscuit.slimefun4.core.attributes.Placeable
public abstract class DisplayGroupBlock
extends io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
implements DisplayInteractable
-
Field Summary
FieldsFields inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addon, disenchantable, enchantable, hidden, recipeOutput, useableInWorkbench -
Constructor Summary
ConstructorsConstructorDescriptionDisplayGroupBlock(io.github.thebusybiscuit.slimefun4.api.items.ItemGroup itemGroup, io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType recipeType, ItemStack[] recipe, Function<Location, DisplayGroup> displayGroupFunction) DisplayGroupBlock(io.github.thebusybiscuit.slimefun4.api.items.ItemGroup itemGroup, io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType recipeType, ItemStack[] recipe, ItemStack recipeOutput, Function<Location, DisplayGroup> displayGroupFunction) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract MaterialgetDisplayGroup(Location location) voidprotected voidwhenBroken(BlockBreakEvent event, ItemStack item, List<ItemStack> drops) protected voidwhenPlaced(BlockPlaceEvent event) Methods inherited from class io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
addItemHandler, addItemSetting, addOfficialWikipage, callItemHandler, canUse, equals, error, getAddon, getBlockTicker, getById, getByItem, getDrops, getDrops, getHandlers, getId, getItem, getItemGroup, getItemName, getItemSetting, getItemSettings, getRecipe, getRecipeOutput, getRecipeType, getResearch, getState, getWikipage, hashCode, hasResearch, info, isDisabled, isDisabledIn, isDisenchantable, isEnchantable, isHidden, isItem, isItemStackImmutable, isTicking, isUseableInWorkbench, load, postRegister, 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.Placeable
useVanillaBlockBreaking
-
Field Details
-
KEY_UUID
- See Also:
-
-
Constructor Details
-
DisplayGroupBlock
public DisplayGroupBlock(io.github.thebusybiscuit.slimefun4.api.items.ItemGroup itemGroup, io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType recipeType, ItemStack[] recipe, Function<Location, DisplayGroup> displayGroupFunction) -
DisplayGroupBlock
public DisplayGroupBlock(io.github.thebusybiscuit.slimefun4.api.items.ItemGroup itemGroup, io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack item, io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType recipeType, ItemStack[] recipe, @Nullable ItemStack recipeOutput, Function<Location, DisplayGroup> displayGroupFunction)
-
-
Method Details
-
preRegister
@OverridingMethodsMustInvokeSuper public void preRegister()- Overrides:
preRegisterin classio.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
-
whenPlaced
-
whenBroken
@ParametersAreNonnullByDefault protected void whenBroken(BlockBreakEvent event, ItemStack item, List<ItemStack> drops) -
getBaseMaterial
-
getUUID
-
getDisplayGroup
@Nullable @OverridingMethodsMustInvokeSuper public DisplayGroup getDisplayGroup(@Nonnull Location location)
-