public class EquippableComponent extends Object implements Equippable
| Constructor and Description |
|---|
EquippableComponent() |
| Modifier and Type | Method and Description |
|---|---|
Optional<ItemStack> |
getBoots() |
Optional<ItemStack> |
getChestplate() |
Optional<ItemStack> |
getHelmet() |
Optional<ItemStack> |
getLeggings() |
void |
setBoots(ItemStack boots) |
void |
setChestplate(ItemStack chestplate) |
void |
setHelmet(ItemStack helmet) |
void |
setLeggings(ItemStack leggings) |
@Nonnull public Optional<ItemStack> getHelmet()
getHelmet in interface Equippablepublic void setHelmet(@Nullable ItemStack helmet)
setHelmet in interface Equippable@Nonnull public Optional<ItemStack> getChestplate()
getChestplate in interface Equippablepublic void setChestplate(@Nullable ItemStack chestplate)
setChestplate in interface Equippable@Nonnull public Optional<ItemStack> getLeggings()
getLeggings in interface Equippablepublic void setLeggings(@Nullable ItemStack leggings)
setLeggings in interface Equippable@Nonnull public Optional<ItemStack> getBoots()
getBoots in interface Equippablepublic void setBoots(@Nullable ItemStack boots)
setBoots in interface EquippableCopyright © 2017–2020 NukkitX. All rights reserved.