Class MenuTypeMock
java.lang.Object
be.seeseemelk.mockbukkit.inventory.MenuTypeMock
- All Implemented Interfaces:
FeatureDependant,net.kyori.adventure.key.Keyed,MenuType,MenuType.Typed,Keyed
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.inventory.MenuType
MenuType.Typed<V extends InventoryView> -
Field Summary
Fields inherited from interface org.bukkit.inventory.MenuType
ANVIL, BEACON, BLAST_FURNACE, BREWING_STAND, CARTOGRAPHY_TABLE, CRAFTER_3X3, CRAFTING, ENCHANTMENT, FURNACE, GENERIC_3X3, GENERIC_9X1, GENERIC_9X2, GENERIC_9X3, GENERIC_9X4, GENERIC_9X5, GENERIC_9X6, GRINDSTONE, HOPPER, LECTERN, LOOM, MERCHANT, SHULKER_BOX, SMITHING, SMOKER, STONECUTTER -
Method Summary
Modifier and TypeMethodDescription@NotNull InventoryViewcreate(@NotNull HumanEntity humanEntity, @NotNull String s) @NotNull InventoryViewcreate(@NotNull HumanEntity humanEntity, @NotNull net.kyori.adventure.text.Component component) static MenuTypeMockfrom(com.google.gson.JsonObject jsonObject) @NotNull Class<? extends InventoryView> @NotNull NamespacedKeygetKey()@NotNull net.kyori.adventure.key.Keykey()@NotNull MenuType.Typed<InventoryView> typed()<V extends InventoryView>
@NotNull MenuType.Typed<V> Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.papermc.paper.world.flag.FeatureDependant
requiredFeatures
-
Method Details
-
create
@NotNull public @NotNull InventoryView create(@NotNull @NotNull HumanEntity humanEntity, @NotNull @NotNull String s) - Specified by:
createin interfaceMenuType.Typed
-
create
@NotNull public @NotNull InventoryView create(@NotNull @NotNull HumanEntity humanEntity, @NotNull @NotNull net.kyori.adventure.text.Component component) - Specified by:
createin interfaceMenuType- Specified by:
createin interfaceMenuType.Typed
-
typed
-
typed
@NotNull public <V extends InventoryView> @NotNull MenuType.Typed<V> typed(@NotNull @NotNull Class<V> aClass) throws IllegalArgumentException - Specified by:
typedin interfaceMenuType- Throws:
IllegalArgumentException
-
getInventoryViewClass
- Specified by:
getInventoryViewClassin interfaceMenuType
-
getKey
-
key
@NotNull public @NotNull net.kyori.adventure.key.Key key() -
from
-