Class Equippable

java.lang.Object
valorless.rarespawns.builders.components.Equippable

public class Equippable extends Object
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:

  • EquippableComponent
  • EquipmentSlot
  • NamespacedKey
  • EntityType
  • Constructor Summary

    Constructors
    Constructor
    Description
    Equippable(valorless.valorlessutils.config.Config config)
    Initializes the equippable component based on the provided configuration.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(org.bukkit.inventory.ItemStack item)
    Applies the equippable component to the given item stack.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      • Config
  • 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:
      • ItemStack
      • ItemMeta