Class NamedContainerProviderItem
java.lang.Object
org.cyclops.cyclopscore.inventory.container.NamedContainerProviderItem
- All Implemented Interfaces:
net.minecraft.world.inventory.MenuConstructor
,net.minecraft.world.MenuProvider
A
MenuProvider
for held items.-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionNamedContainerProviderItem
(ItemLocation itemLocation, net.minecraft.network.chat.Component title, NamedContainerProviderItem.IContainerSupplier containerSupplier) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.inventory.AbstractContainerMenu
createMenu
(int id, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.entity.player.Player player) net.minecraft.network.chat.Component
-
Constructor Details
-
NamedContainerProviderItem
public NamedContainerProviderItem(ItemLocation itemLocation, net.minecraft.network.chat.Component title, NamedContainerProviderItem.IContainerSupplier containerSupplier)
-
-
Method Details
-
getDisplayName
public net.minecraft.network.chat.Component getDisplayName()- Specified by:
getDisplayName
in interfacenet.minecraft.world.MenuProvider
-
createMenu
@Nullable public net.minecraft.world.inventory.AbstractContainerMenu createMenu(int id, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.entity.player.Player player) - Specified by:
createMenu
in interfacenet.minecraft.world.inventory.MenuConstructor
-