public class MerchantContainer extends Container
inventorySlots, windowId| Constructor and Description |
|---|
MerchantContainer(int id,
PlayerInventory playerInventoryIn) |
MerchantContainer(int id,
PlayerInventory playerInventoryIn,
IMerchant merchantIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canInteractWith(PlayerEntity playerIn) |
boolean |
canMergeSlot(ItemStack stack,
Slot slotIn) |
boolean |
func_217042_i() |
void |
func_217045_a(boolean p_217045_1_) |
void |
func_217046_g(int p_217046_1_) |
void |
func_223431_b(boolean p_223431_1_) |
boolean |
func_223432_h() |
int |
getMerchantLevel() |
MerchantOffers |
getOffers() |
int |
getPendingExp() |
int |
getXp() |
void |
onContainerClosed(PlayerEntity playerIn) |
void |
onCraftMatrixChanged(IInventory inventoryIn) |
void |
setClientSideOffers(MerchantOffers offers) |
void |
setCurrentRecipeIndex(int currentRecipeIndex) |
void |
setMerchantLevel(int level) |
void |
setXp(int xp) |
ItemStack |
transferStackInSlot(PlayerEntity playerIn,
int index) |
addListener, addSlot, areItemsAndTagsEqual, assertIntArraySize, assertInventorySize, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, clearContainer, computeStackSize, detectAndSendChanges, enchantItem, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getType, isValidDragMode, isWithinUsableDistance, mergeItemStack, putStackInSlot, removeListener, resetDrag, setAll, setCanCraft, slotClick, trackInt, trackIntArray, updateProgressBarpublic MerchantContainer(int id,
PlayerInventory playerInventoryIn)
public MerchantContainer(int id,
PlayerInventory playerInventoryIn,
IMerchant merchantIn)
public void func_217045_a(boolean p_217045_1_)
public void onCraftMatrixChanged(IInventory inventoryIn)
onCraftMatrixChanged in class Containerpublic void setCurrentRecipeIndex(int currentRecipeIndex)
public boolean canInteractWith(PlayerEntity playerIn)
canInteractWith in class Containerpublic int getXp()
public int getPendingExp()
public void setXp(int xp)
public int getMerchantLevel()
public void setMerchantLevel(int level)
public void func_223431_b(boolean p_223431_1_)
public boolean func_223432_h()
public boolean canMergeSlot(ItemStack stack, Slot slotIn)
canMergeSlot in class Containerpublic ItemStack transferStackInSlot(PlayerEntity playerIn, int index)
transferStackInSlot in class Containerpublic void onContainerClosed(PlayerEntity playerIn)
onContainerClosed in class Containerpublic void func_217046_g(int p_217046_1_)
public void setClientSideOffers(MerchantOffers offers)
public MerchantOffers getOffers()
public boolean func_217042_i()