Package | Description |
---|---|
org.bukkit.attribute |
Classes relevant to attributes.
|
org.bukkit.event.block | |
org.bukkit.event.player | |
org.bukkit.inventory |
Classes involved in manipulating player inventories and item interactions.
|
org.bukkit.inventory.meta |
The interfaces used when manipulating extra data can can be stored inside
item stacks . |
Modifier and Type | Method and Description |
---|---|
@Nullable EquipmentSlot |
AttributeModifier.getSlot()
Get the
EquipmentSlot this AttributeModifier is active on,
or null if this modifier is applicable for any slot. |
@Nullable EquipmentSlot |
AttributeModifier.getSlot()
Get the
EquipmentSlot this AttributeModifier is active on,
or null if this modifier is applicable for any slot. |
Constructor and Description |
---|
AttributeModifier(@NotNull UUID uuid,
@NotNull String name,
double amount,
@NotNull AttributeModifier.Operation operation,
@Nullable EquipmentSlot slot) |
AttributeModifier(@NotNull UUID uuid,
@NotNull String name,
double amount,
@NotNull AttributeModifier.Operation operation,
@Nullable EquipmentSlot slot) |
Modifier and Type | Field and Description |
---|---|
protected EquipmentSlot |
BlockPlaceEvent.hand |
protected EquipmentSlot |
BlockPlaceEvent.hand |
Modifier and Type | Method and Description |
---|---|
@NotNull EquipmentSlot |
BlockPlaceEvent.getHand()
Gets the hand which placed the block
|
@NotNull EquipmentSlot |
BlockPlaceEvent.getHand()
Gets the hand which placed the block
|
Constructor and Description |
---|
BlockPlaceEvent(@NotNull Block placedBlock,
@NotNull BlockState replacedBlockState,
@NotNull Block placedAgainst,
@NotNull ItemStack itemInHand,
@NotNull Player thePlayer,
boolean canBuild,
@NotNull EquipmentSlot hand) |
BlockPlaceEvent(@NotNull Block placedBlock,
@NotNull BlockState replacedBlockState,
@NotNull Block placedAgainst,
@NotNull ItemStack itemInHand,
@NotNull Player thePlayer,
boolean canBuild,
@NotNull EquipmentSlot hand) |
Modifier and Type | Method and Description |
---|---|
@NotNull EquipmentSlot |
PlayerInteractEntityEvent.getHand()
The hand used to perform this interaction.
|
@Nullable EquipmentSlot |
PlayerInteractEvent.getHand()
The hand used to perform this interaction.
|
@NotNull EquipmentSlot |
PlayerShearEntityEvent.getHand()
Gets the hand used to shear the entity.
|
@NotNull EquipmentSlot |
PlayerShearEntityEvent.getHand()
Gets the hand used to shear the entity.
|
@Nullable EquipmentSlot |
PlayerInteractEvent.getHand()
The hand used to perform this interaction.
|
@NotNull EquipmentSlot |
PlayerInteractEntityEvent.getHand()
The hand used to perform this interaction.
|
@NotNull EquipmentSlot |
PlayerArmorStandManipulateEvent.getSlot()
Returns the raw item slot of the armor stand in this event.
|
@NotNull EquipmentSlot |
PlayerArmorStandManipulateEvent.getSlot()
Returns the raw item slot of the armor stand in this event.
|
Constructor and Description |
---|
PlayerArmorStandManipulateEvent(@NotNull Player who,
@NotNull ArmorStand clickedEntity,
@NotNull ItemStack playerItem,
@NotNull ItemStack armorStandItem,
@NotNull EquipmentSlot slot) |
PlayerArmorStandManipulateEvent(@NotNull Player who,
@NotNull ArmorStand clickedEntity,
@NotNull ItemStack playerItem,
@NotNull ItemStack armorStandItem,
@NotNull EquipmentSlot slot) |
PlayerInteractAtEntityEvent(@NotNull Player who,
@NotNull Entity clickedEntity,
@NotNull Vector position,
@NotNull EquipmentSlot hand) |
PlayerInteractAtEntityEvent(@NotNull Player who,
@NotNull Entity clickedEntity,
@NotNull Vector position,
@NotNull EquipmentSlot hand) |
PlayerInteractEntityEvent(@NotNull Player who,
@NotNull Entity clickedEntity,
@NotNull EquipmentSlot hand) |
PlayerInteractEntityEvent(@NotNull Player who,
@NotNull Entity clickedEntity,
@NotNull EquipmentSlot hand) |
PlayerInteractEvent(@NotNull Player who,
@NotNull Action action,
@Nullable ItemStack item,
@Nullable Block clickedBlock,
@NotNull BlockFace clickedFace,
@Nullable EquipmentSlot hand) |
PlayerInteractEvent(@NotNull Player who,
@NotNull Action action,
@Nullable ItemStack item,
@Nullable Block clickedBlock,
@NotNull BlockFace clickedFace,
@Nullable EquipmentSlot hand) |
PlayerShearEntityEvent(@NotNull Player who,
@NotNull Entity what,
@NotNull ItemStack item,
@NotNull EquipmentSlot hand) |
PlayerShearEntityEvent(@NotNull Player who,
@NotNull Entity what,
@NotNull ItemStack item,
@NotNull EquipmentSlot hand) |
Modifier and Type | Method and Description |
---|---|
static EquipmentSlot |
EquipmentSlot.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EquipmentSlot |
EquipmentSlot.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EquipmentSlot[] |
EquipmentSlot.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static EquipmentSlot[] |
EquipmentSlot.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
@NotNull ItemStack |
PlayerInventory.getItem(@NotNull EquipmentSlot slot)
Gets the ItemStack at the given equipment slot in the inventory.
|
@NotNull ItemStack |
EntityEquipment.getItem(@NotNull EquipmentSlot slot)
Gets the ItemStack at the given equipment slot in the inventory.
|
@NotNull ItemStack |
EntityEquipment.getItem(@NotNull EquipmentSlot slot)
Gets the ItemStack at the given equipment slot in the inventory.
|
@NotNull ItemStack |
PlayerInventory.getItem(@NotNull EquipmentSlot slot)
Gets the ItemStack at the given equipment slot in the inventory.
|
void |
PlayerInventory.setItem(@NotNull EquipmentSlot slot,
@Nullable ItemStack item)
Stores the ItemStack at the given equipment slot in the inventory.
|
void |
EntityEquipment.setItem(@NotNull EquipmentSlot slot,
@Nullable ItemStack item)
Stores the ItemStack at the given equipment slot in the inventory.
|
void |
EntityEquipment.setItem(@NotNull EquipmentSlot slot,
@Nullable ItemStack item)
Stores the ItemStack at the given equipment slot in the inventory.
|
void |
PlayerInventory.setItem(@NotNull EquipmentSlot slot,
@Nullable ItemStack item)
Stores the ItemStack at the given equipment slot in the inventory.
|
Modifier and Type | Method and Description |
---|---|
@NotNull com.google.common.collect.Multimap<Attribute,AttributeModifier> |
ItemMeta.getAttributeModifiers(@NotNull EquipmentSlot slot)
|
@NotNull com.google.common.collect.Multimap<Attribute,AttributeModifier> |
ItemMeta.getAttributeModifiers(@NotNull EquipmentSlot slot)
|
boolean |
ItemMeta.removeAttributeModifier(@NotNull EquipmentSlot slot)
|
boolean |
ItemMeta.removeAttributeModifier(@NotNull EquipmentSlot slot)
|
Copyright © 2022. All rights reserved.