Class CuriosIntegration
java.lang.Object
com.binaris.wizardry.integration.curios.CuriosIntegration
- All Implemented Interfaces:
ArtifactIntegration
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemcreateArtifact(net.minecraft.world.item.Rarity rarity, IArtifactEffect effect) Creates an artifact item base on the artifact dependency if loaded.List<net.minecraft.world.item.ItemStack>getEquippedArtifacts(net.minecraft.world.entity.player.Player player) Retrieves a list of all equipped items from the artifact dependency if loaded.booleanisEquipped(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.Item item) Checks if a specific item is equipped in the artifact dependency if loaded.booleanisLoaded()Check if the Artifact dependency is loaded.static voidload()
-
Field Details
-
INSTANCE
-
-
Method Details
-
isLoaded
public boolean isLoaded()Description copied from interface:ArtifactIntegrationCheck if the Artifact dependency is loaded.- Specified by:
isLoadedin interfaceArtifactIntegration- Returns:
- true if it's loaded, false otherwise
-
load
public static void load() -
createArtifact
public net.minecraft.world.item.Item createArtifact(net.minecraft.world.item.Rarity rarity, IArtifactEffect effect) Description copied from interface:ArtifactIntegrationCreates an artifact item base on the artifact dependency if loaded.- Specified by:
createArtifactin interfaceArtifactIntegration- Parameters:
rarity- the rarity of the artifact itemeffect- the artifact effect (event quick access)- Returns:
- the created artifact item
-
getEquippedArtifacts
public List<net.minecraft.world.item.ItemStack> getEquippedArtifacts(net.minecraft.world.entity.player.Player player) Description copied from interface:ArtifactIntegrationRetrieves a list of all equipped items from the artifact dependency if loaded.- Specified by:
getEquippedArtifactsin interfaceArtifactIntegration- Parameters:
player- the player whose equipped items are to be retrieved- Returns:
- a list of equipped item stacks
-
isEquipped
public boolean isEquipped(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.Item item) Description copied from interface:ArtifactIntegrationChecks if a specific item is equipped in the artifact dependency if loaded.- Specified by:
isEquippedin interfaceArtifactIntegration- Parameters:
player- the player to checkitem- the item to check for- Returns:
- true if the item is equipped, false otherwise
-