Class Equippable
java.lang.Object
valorless.rarespawns.builders.components.Equippable
Represents an equippable component that can be applied to an item.
This component defines how the item can be equipped by entities.
Links to Bukkit API:
EquippableComponentEquipmentSlotNamespacedKeyEntityType
-
Constructor Summary
ConstructorsConstructorDescriptionEquippable(valorless.valorlessutils.config.Config config) Initializes the equippable component based on the provided configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(org.bukkit.inventory.ItemStack item) Applies the equippable component to the given item stack.
-
Constructor Details
-
Equippable
public Equippable(valorless.valorlessutils.config.Config config) Initializes the equippable component based on the provided configuration.Supported config keys:
- equippable.slot
- equippable.model
- equippable.swappable
- equippable.camera-overlay
- equippable.damage-on-hurt
- equippable.dispensable
- equippable.equip-sound
- equippable.allowed-entities
- Parameters:
config- The configuration object containing equippable settings.- See Also:
-
-
Method Details
-
apply
public void apply(org.bukkit.inventory.ItemStack item) Applies the equippable component to the given item stack.- Parameters:
item- The item stack to apply the component to.- See Also:
-