Class EBAccessoriesIntegration
java.lang.Object
com.binaris.wizardry.core.integrations.accessories.EBAccessoriesIntegration
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.item.ItemgetArtifact(net.minecraft.world.item.Rarity rarity, IArtifactEffect effect) Creates an artifact item, using Accessories integration if available, otherwise defaults to a standard artifact item.static @Nullable net.minecraft.world.item.ItemStackgetEquipped(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.Item item) Retrieves the equipped item stack for a specific item from Accessories mod if available.static List<net.minecraft.world.item.ItemStack>getEquippedItems(net.minecraft.world.entity.player.Player player) Retrieves a list of all equipped items from Accessories mod if available, otherwise returns the player's hotbar and offhand items.static booleanChecks if Accessories mod is loaded.static booleanisEquipped(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.Item item) Checks if a specific item is equipped in Accessories mod if available.
-
Method Details
-
isAccessoriesLoaded
public static boolean isAccessoriesLoaded()Checks if Accessories mod is loaded.- Returns:
- true if Accessories is loaded, false otherwise
-
getArtifact
public static net.minecraft.world.item.Item getArtifact(net.minecraft.world.item.Rarity rarity, IArtifactEffect effect) Creates an artifact item, using Accessories integration if available, otherwise defaults to a standard artifact item.- Parameters:
rarity- the rarity of the artifacteffect- the artifact effect- Returns:
- the created artifact item
-
getEquippedItems
public static List<net.minecraft.world.item.ItemStack> getEquippedItems(net.minecraft.world.entity.player.Player player) Retrieves a list of all equipped items from Accessories mod if available, otherwise returns the player's hotbar and offhand items.- Parameters:
player- the player whose equipped items are to be retrieved- Returns:
- a list of equipped item stacks
-
isEquipped
public static boolean isEquipped(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.Item item) Checks if a specific item is equipped in Accessories mod if available.- Parameters:
player- the player to checkitem- the item to check for- Returns:
- true if the item is equipped, false otherwise
-
getEquipped
@Nullable public static @Nullable net.minecraft.world.item.ItemStack getEquipped(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.Item item) Retrieves the equipped item stack for a specific item from Accessories mod if available.- Parameters:
player- the player whose equipped item is to be retrieveditem- the item to retrieve- Returns:
- the equipped item stack, or null if not found
-