Class ItemFactoryMock
java.lang.Object
be.seeseemelk.mockbukkit.inventory.ItemFactoryMock
- All Implemented Interfaces:
ItemFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull net.kyori.adventure.text.event.HoverEvent<net.kyori.adventure.text.event.HoverEvent.ShowItem>asHoverEvent(@NotNull ItemStack item, @NotNull UnaryOperator<net.kyori.adventure.text.event.HoverEvent.ShowItem> op) @NotNull ItemStackcreateItemStack(@NotNull String input) @NotNull net.kyori.adventure.text.ComponentdisplayName(@NotNull ItemStack itemStack) @NotNull ItemStackenchantWithLevels(@NotNull ItemStack itemStack, @org.jetbrains.annotations.Range(from=1L, to=30L) int levels, boolean allowTreasure, @NotNull Random random) @NotNull ItemStackensureServerConversions(@NotNull ItemStack item) boolean@NotNull Color@Nullable StringgetI18NDisplayName(@Nullable ItemStack item) Deprecated.@NotNull ItemMetagetItemMeta(@NotNull Material material) @Nullable ItemStackgetSpawnEgg(@Nullable EntityType type) @NotNull net.md_5.bungee.api.chat.hover.content.ContenthoverContentOf(@NotNull Entity entity) Deprecated.@NotNull net.md_5.bungee.api.chat.hover.content.ContenthoverContentOf(@NotNull Entity entity, @NotNull net.md_5.bungee.api.chat.BaseComponent[] customName) Deprecated.@NotNull net.md_5.bungee.api.chat.hover.content.ContenthoverContentOf(@NotNull Entity entity, @Nullable String customName) Deprecated.@NotNull net.md_5.bungee.api.chat.hover.content.ContenthoverContentOf(@NotNull Entity entity, @Nullable net.md_5.bungee.api.chat.BaseComponent customName) Deprecated.@NotNull net.md_5.bungee.api.chat.hover.content.ContenthoverContentOf(@NotNull ItemStack itemStack) Deprecated.booleanisApplicable(ItemMeta meta, @NotNull ItemStack stack) booleanisApplicable(ItemMeta meta, @NotNull Material material) @NotNull MaterialupdateMaterial(ItemMeta meta, @NotNull Material material) Deprecated.
-
Constructor Details
-
ItemFactoryMock
public ItemFactoryMock()
-
-
Method Details
-
getItemMeta
- Specified by:
getItemMetain interfaceItemFactory
-
isApplicable
- Specified by:
isApplicablein interfaceItemFactory
-
isApplicable
- Specified by:
isApplicablein interfaceItemFactory
-
equals
- Specified by:
equalsin interfaceItemFactory
-
asMetaFor
- Specified by:
asMetaForin interfaceItemFactory
-
asMetaFor
- Specified by:
asMetaForin interfaceItemFactory
-
getDefaultLeatherColor
- Specified by:
getDefaultLeatherColorin interfaceItemFactory
-
createItemStack
@NotNull public @NotNull ItemStack createItemStack(@NotNull @NotNull String input) throws IllegalArgumentException - Specified by:
createItemStackin interfaceItemFactory- Throws:
IllegalArgumentException
-
updateMaterial
@Deprecated @NotNull public @NotNull Material updateMaterial(ItemMeta meta, @NotNull @NotNull Material material) Deprecated.- Specified by:
updateMaterialin interfaceItemFactory
-
enchantWithLevels
@NotNull public @NotNull ItemStack enchantWithLevels(@NotNull @NotNull ItemStack itemStack, @org.jetbrains.annotations.Range(from=1L, to=30L) int levels, boolean allowTreasure, @NotNull @NotNull Random random) - Specified by:
enchantWithLevelsin interfaceItemFactory
-
asHoverEvent
@NotNull public @NotNull net.kyori.adventure.text.event.HoverEvent<net.kyori.adventure.text.event.HoverEvent.ShowItem> asHoverEvent(@NotNull @NotNull ItemStack item, @NotNull @NotNull UnaryOperator<net.kyori.adventure.text.event.HoverEvent.ShowItem> op) - Specified by:
asHoverEventin interfaceItemFactory
-
displayName
@NotNull public @NotNull net.kyori.adventure.text.Component displayName(@NotNull @NotNull ItemStack itemStack) - Specified by:
displayNamein interfaceItemFactory
-
getI18NDisplayName
@Deprecated @Nullable public @Nullable String getI18NDisplayName(@Nullable @Nullable ItemStack item) Deprecated.- Specified by:
getI18NDisplayNamein interfaceItemFactory
-
ensureServerConversions
- Specified by:
ensureServerConversionsin interfaceItemFactory
-
hoverContentOf
@Deprecated @NotNull public @NotNull net.md_5.bungee.api.chat.hover.content.Content hoverContentOf(@NotNull @NotNull ItemStack itemStack) Deprecated.- Specified by:
hoverContentOfin interfaceItemFactory
-
hoverContentOf
@Deprecated @NotNull public @NotNull net.md_5.bungee.api.chat.hover.content.Content hoverContentOf(@NotNull @NotNull Entity entity) Deprecated.- Specified by:
hoverContentOfin interfaceItemFactory
-
hoverContentOf
@Deprecated @NotNull public @NotNull net.md_5.bungee.api.chat.hover.content.Content hoverContentOf(@NotNull @NotNull Entity entity, @Nullable @Nullable String customName) Deprecated.- Specified by:
hoverContentOfin interfaceItemFactory
-
hoverContentOf
@Deprecated @NotNull public @NotNull net.md_5.bungee.api.chat.hover.content.Content hoverContentOf(@NotNull @NotNull Entity entity, @Nullable @Nullable net.md_5.bungee.api.chat.BaseComponent customName) Deprecated.- Specified by:
hoverContentOfin interfaceItemFactory
-
hoverContentOf
@Deprecated @NotNull public @NotNull net.md_5.bungee.api.chat.hover.content.Content hoverContentOf(@NotNull @NotNull Entity entity, @NotNull @NotNull net.md_5.bungee.api.chat.BaseComponent[] customName) Deprecated.- Specified by:
hoverContentOfin interfaceItemFactory
-
getSpawnEgg
- Specified by:
getSpawnEggin interfaceItemFactory
-