Class SimpleNamedContainerProvider
- java.lang.Object
-
- net.minecraft.inventory.container.SimpleNamedContainerProvider
-
- All Implemented Interfaces:
IContainerProvider
,INamedContainerProvider
public final class SimpleNamedContainerProvider extends java.lang.Object implements INamedContainerProvider
-
-
Field Summary
Fields Modifier and Type Field Description private IContainerProvider
menuConstructor
private ITextComponent
title
-
Constructor Summary
Constructors Constructor Description SimpleNamedContainerProvider(IContainerProvider p_i50396_1_, ITextComponent p_i50396_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Container
createMenu(int p_createMenu_1_, PlayerInventory p_createMenu_2_, PlayerEntity p_createMenu_3_)
ITextComponent
getDisplayName()
-
-
-
Field Detail
-
title
private final ITextComponent title
-
menuConstructor
private final IContainerProvider menuConstructor
-
-
Constructor Detail
-
SimpleNamedContainerProvider
public SimpleNamedContainerProvider(IContainerProvider p_i50396_1_, ITextComponent p_i50396_2_)
-
-
Method Detail
-
getDisplayName
public ITextComponent getDisplayName()
- Specified by:
getDisplayName
in interfaceINamedContainerProvider
-
createMenu
public Container createMenu(int p_createMenu_1_, PlayerInventory p_createMenu_2_, PlayerEntity p_createMenu_3_)
- Specified by:
createMenu
in interfaceIContainerProvider
-
-