Interface ArtifactIntegration
- All Known Implementing Classes:
AccessoriesArtifactImpl,AccessoriesIntegration,TrinketsArtifactImpl,TrinketsIntegration,VanillaArtifactIntegration
public interface ArtifactIntegration
-
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.
-
Method Details
-
isLoaded
boolean isLoaded()Check if the Artifact dependency is loaded.- Returns:
- true if it's loaded, false otherwise
-
createArtifact
net.minecraft.world.item.Item createArtifact(net.minecraft.world.item.Rarity rarity, IArtifactEffect effect) Creates an artifact item base on the artifact dependency if loaded.- Parameters:
rarity- the rarity of the artifact itemeffect- the artifact effect (event quick access)- Returns:
- the created artifact item
-
getEquippedArtifacts
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.- Parameters:
player- the player whose equipped items are to be retrieved- Returns:
- a list of equipped item stacks
-
isEquipped
boolean isEquipped(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.- Parameters:
player- the player to checkitem- the item to check for- Returns:
- true if the item is equipped, false otherwise
-