Package dev.jaxydog.astral.content.item
Interface Custom
- All Superinterfaces:
net.minecraft.item.ItemConvertible,Registered,Registered.Common
- All Known Subinterfaces:
Sprayed
- All Known Implementing Classes:
AstralArmorItem,AstralBlockItem,AstralItem,AstralPotionItem,BottleItem,BowlItem,ChocolateMilkItem,CloudyArmorItem,CloudyItem,DyeableCloudyArmorItem,DyedAmethystShardItem,MirrorItem,PlaceholderItem,PlaceholderMimicItem,RandomEffectItem,SprayBottleItem,SprayPotionItem
Implements common functionality for all item extensions.
When creating a new item extension, this interface should be implemented.
This type is automatically registered.
- Since:
- 2.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.jaxydog.astral.register.Registered
Registered.All, Registered.Client, Registered.Common, Registered.Generated, Registered.Server -
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<net.minecraft.registry.RegistryKey<net.minecraft.item.ItemGroup>> Returns this item's preferred item group.default voidRegisters this value on both the client and server environments.Methods inherited from interface net.minecraft.item.ItemConvertible
asItemMethods inherited from interface dev.jaxydog.astral.register.Registered
getRegistryId, getRegistryPath
-
Method Details
-
getItemGroup
Returns this item's preferred item group.- Returns:
- A reference to an item group.
- Since:
- 2.0.0
-
registerCommon
default void registerCommon()Description copied from interface:Registered.CommonRegisters this value on both the client and server environments.The contained code will run for both environments. If you only want one or the other, see its sister interfaces.
- Specified by:
registerCommonin interfaceRegistered.Common- See Also:
-