Interface HologramEquipment
public interface HologramEquipment
Represents the externally visible equipment inventory of a hologram.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Represents a slot in a holograms equipment inventory. -
Method Summary
Modifier and TypeMethodDescription@Nullable ItemStack
Get an item that has been put at a certain slot.getSkin()
Get the skin that is being represented by this instance.void
setItem
(HologramEquipment.Slot slot, @Nullable ItemStack is) Set an item at a certain slot.
-
Method Details
-
getSkin
HologramSkin getSkin()Get the skin that is being represented by this instance.- Returns:
- The skin instance for which the items will be displayed
-
setItem
Set an item at a certain slot.- Parameters:
slot
- The slot at which the item shall be put tois
- The item that shall be placed. May benull
if it's supposed to be air
-
getItem
Get an item that has been put at a certain slot.- Parameters:
slot
- The slot at which the item has been put at- Returns:
- The item that has been placed. Maybe be
null
if it's air
-