Class NeoForgeEquipmentIntegration
java.lang.Object
me.alexdevs.classicPeripherals.integrations.NeoForgeEquipmentIntegration
- All Implemented Interfaces:
IEquipmentIntegration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional<net.minecraft.world.item.ItemStack> getEquippedStack(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.Item item) Finds the first stack equipped in an accessory slot whose item matchesitem.booleanisLoaded()Whether the backing accessory mod (Trinkets/Curios) is present.
-
Constructor Details
-
NeoForgeEquipmentIntegration
public NeoForgeEquipmentIntegration()
-
-
Method Details
-
isLoaded
public boolean isLoaded()Description copied from interface:IEquipmentIntegrationWhether the backing accessory mod (Trinkets/Curios) is present.- Specified by:
isLoadedin interfaceIEquipmentIntegration
-
getEquippedStack
public Optional<net.minecraft.world.item.ItemStack> getEquippedStack(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.Item item) Description copied from interface:IEquipmentIntegrationFinds the first stack equipped in an accessory slot whose item matchesitem.- Specified by:
getEquippedStackin interfaceIEquipmentIntegration
-