public class MerchantContainer extends Container
Modifier and Type | Field and Description |
---|---|
private boolean |
field_217055_f |
private boolean |
field_223433_g |
private IMerchant |
merchant |
private MerchantInventory |
merchantInventory |
private int |
merchantLevel |
inventorySlots, windowId
Constructor and Description |
---|
MerchantContainer(int id,
PlayerInventory playerInventoryIn) |
MerchantContainer(int id,
PlayerInventory playerInventoryIn,
IMerchant merchantIn) |
Modifier and Type | Method and Description |
---|---|
private boolean |
areItemStacksEqual(ItemStack stack1,
ItemStack stack2) |
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_) |
private void |
func_217053_c(int p_217053_1_,
ItemStack p_217053_2_) |
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) |
private void |
playMerchantYesSound() |
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, updateProgressBar
private final IMerchant merchant
private final MerchantInventory merchantInventory
private int merchantLevel
private boolean field_217055_f
private boolean field_223433_g
public 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 Container
public void setCurrentRecipeIndex(int currentRecipeIndex)
public boolean canInteractWith(PlayerEntity playerIn)
canInteractWith
in class Container
public 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 Container
public ItemStack transferStackInSlot(PlayerEntity playerIn, int index)
transferStackInSlot
in class Container
private void playMerchantYesSound()
public void onContainerClosed(PlayerEntity playerIn)
onContainerClosed
in class Container
public void func_217046_g(int p_217046_1_)
private void func_217053_c(int p_217053_1_, ItemStack p_217053_2_)
public void setClientSideOffers(MerchantOffers offers)
public MerchantOffers getOffers()
public boolean func_217042_i()