Class SimpleSlimefunItem<T extends ItemHandler>
java.lang.Object
io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem
io.github.thebusybiscuit.slimefun4.implementation.items.SimpleSlimefunItem<T>
- Type Parameters:
T- The Type ofItemHandlerto add to thisSlimefunItem
- All Implemented Interfaces:
Placeable
- Direct Known Subclasses:
AbstractEntityAssembler,AdvancedCargoOutputNode,AncientPedestal,AndroidInterface,Bandage,BasicCircuitBoard,CargoConnectorNode,CargoInputNode,CargoOutputNode,ChristmasPresent,ClimbingPick,Composter,Crucible,DietCookie,EasterEgg,ElevatorPlate,EnchantmentRune,EnderBackpack,EnergyConnector,EnhancedFurnace,ExplosiveTool,FluidPump,FortuneCookie,GEOScanner,GoldPan,GPSControlPanel,GPSMarkerTool,GPSTransmitter,GrapplingHook,HeavyCream,InfernalBonemeal,InfusedHopper,Juice,KnowledgeFlask,KnowledgeTome,LimitedUseItem,MagicalZombiePills,MagicEyeOfEnder,MagicSugar,MeatJerky,MedicalSupply,MonsterJerky,Multimeter,PickaxeOfContainment,PickaxeOfTheSeeker,PickaxeOfVeinMining,PortableCrafter,PortableDustbin,PortableGEOScanner,PortableTeleporter,RainbowBlock,SeismicAxe,SlimefunBackpack,SmeltersPickaxe,SoulboundRune,Splint,StrangeNetherGoo,SwordOfBeheading,TapeMeasure,Teleporter,TelepositionScroll,UnplaceableBlock,VampireBlade,VillagerRune,WaterStaff,WindStaff
This is basically a quickstart class for your very first
SlimefunItem.
This class easily allows you to add one ItemHandler to your SlimefunItem.
You could use an ItemUseHandler for example to give your SlimefunItem
very basic right-click functionalities.- 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
ConstructorsModifierConstructorDescriptionprotectedSimpleSlimefunItem(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) protectedSimpleSlimefunItem(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe, ItemStack recipeOutput) -
Method Summary
Modifier and TypeMethodDescriptionabstract TThis returns theItemHandlerthat will be added to thisSlimefunItem.voidThis method is called beforeSlimefunItem.register(SlimefunAddon).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, getOptionalById, getOptionalByItem, 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
-
Constructor Details
-
SimpleSlimefunItem
@ParametersAreNonnullByDefault protected SimpleSlimefunItem(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) -
SimpleSlimefunItem
@ParametersAreNonnullByDefault protected SimpleSlimefunItem(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe, @Nullable ItemStack recipeOutput)
-
-
Method Details
-
preRegister
public void preRegister()Description copied from class:SlimefunItemThis method is called beforeSlimefunItem.register(SlimefunAddon). Override this method to add any additional setup, adding anItemHandlerfor example.- Overrides:
preRegisterin classSlimefunItem
-
getItemHandler
This returns theItemHandlerthat will be added to thisSlimefunItem.- Returns:
- The
ItemHandlerthat should be added to thisSlimefunItem
-