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 ofItemHandler
to 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
ModifierConstructorDescriptionprotected
SimpleSlimefunItem
(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) protected
SimpleSlimefunItem
(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe, ItemStack recipeOutput) -
Method Summary
Modifier and TypeMethodDescriptionabstract T
This returns theItemHandler
that will be added to thisSlimefunItem
.void
This 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, warn
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:SlimefunItem
This method is called beforeSlimefunItem.register(SlimefunAddon)
. Override this method to add any additional setup, adding anItemHandler
for example.- Overrides:
preRegister
in classSlimefunItem
-
getItemHandler
This returns theItemHandler
that will be added to thisSlimefunItem
.- Returns:
- The
ItemHandler
that should be added to thisSlimefunItem
-