public class ContainerAmadron extends ContainerPneumaticBase<TileEntityBase>
| Modifier and Type | Class and Description |
|---|---|
static class |
ContainerAmadron.EnumProblemState |
| Modifier and Type | Field and Description |
|---|---|
java.util.List<AmadronRecipe> |
activeOffers |
boolean[] |
buyableOffers |
int |
currentOffers |
int |
maxOffers |
static int |
OFFERS_PER_PAGE |
ContainerAmadron.EnumProblemState |
problemState |
static int |
ROWS |
te| Constructor and Description |
|---|
ContainerAmadron(int windowId,
net.minecraft.entity.player.PlayerInventory invPlayer,
net.minecraft.util.Hand hand) |
ContainerAmadron(int windowId,
net.minecraft.entity.player.PlayerInventory playerInventory,
net.minecraft.network.PacketBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearStacks() |
void |
clickOffer(int offerId,
int mouseButton,
boolean shiftPressed,
net.minecraft.entity.player.ServerPlayerEntity player)
Run server-side to handle an offer being clicked.
|
net.minecraft.util.Hand |
getHand() |
int |
getShoppingCartAmount(AmadronRecipe offer) |
void |
handleGUIButtonPress(java.lang.String tag,
boolean shiftHeld,
net.minecraft.entity.player.ServerPlayerEntity player) |
boolean |
isBasketEmpty() |
net.minecraft.item.ItemStack |
quickMoveStack(net.minecraft.entity.player.PlayerEntity p_82846_1_,
int p_82846_2_) |
void |
removed(net.minecraft.entity.player.PlayerEntity player) |
static EntityAmadrone |
retrieveOrderItems(net.minecraft.entity.player.PlayerEntity orderingPlayer,
AmadronRecipe offer,
int times,
net.minecraft.util.math.GlobalPos itemGPos,
net.minecraft.util.math.GlobalPos liquidGPos) |
void |
setItem(int slot,
net.minecraft.item.ItemStack stack) |
void |
setStack(int index,
net.minecraft.item.ItemStack stack) |
boolean |
stillValid(net.minecraft.entity.player.PlayerEntity player) |
static boolean |
validateStockLevel(net.minecraft.entity.player.PlayerEntity orderingPlayer,
AmadronRecipe offer,
int times,
boolean isAmadronRestock) |
addPlayerSlots, addPlayerSlots, addUpgradeSlots, broadcastChanges, clicked, moveItemStackTo, putHand, updateFieldaddDataSlot, addDataSlots, addSlot, addSlotListener, backup, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clickMenuButton, consideredTheSameItem, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getType, isSynched, isValidQuickcraftType, removeSlotListener, resetQuickCraft, setAll, setData, setSynched, slotsChanged, stillValidpublic static final int ROWS
public static final int OFFERS_PER_PAGE
public final java.util.List<AmadronRecipe> activeOffers
public final boolean[] buyableOffers
public ContainerAmadron.EnumProblemState problemState
public int maxOffers
public int currentOffers
public ContainerAmadron(int windowId,
net.minecraft.entity.player.PlayerInventory invPlayer,
net.minecraft.util.Hand hand)
public ContainerAmadron(int windowId,
net.minecraft.entity.player.PlayerInventory playerInventory,
net.minecraft.network.PacketBuffer buffer)
public boolean isBasketEmpty()
public net.minecraft.util.Hand getHand()
public void setItem(int slot,
@Nonnull
net.minecraft.item.ItemStack stack)
setItem in class net.minecraft.inventory.container.Containerpublic boolean stillValid(net.minecraft.entity.player.PlayerEntity player)
stillValid in class ContainerPneumaticBase<TileEntityBase>public void clearStacks()
public void setStack(int index,
net.minecraft.item.ItemStack stack)
@Nonnull
public net.minecraft.item.ItemStack quickMoveStack(net.minecraft.entity.player.PlayerEntity p_82846_1_,
int p_82846_2_)
quickMoveStack in class ContainerPneumaticBase<TileEntityBase>public void clickOffer(int offerId,
int mouseButton,
boolean shiftPressed,
net.minecraft.entity.player.ServerPlayerEntity player)
offerId - numeric offer id; an index into the live offers listmouseButton - mouse buttonshiftPressed - true if shift-clickedplayer - the playerpublic void handleGUIButtonPress(java.lang.String tag,
boolean shiftHeld,
net.minecraft.entity.player.ServerPlayerEntity player)
handleGUIButtonPress in interface IGUIButtonSensitivehandleGUIButtonPress in class ContainerPneumaticBase<TileEntityBase>public static EntityAmadrone retrieveOrderItems(net.minecraft.entity.player.PlayerEntity orderingPlayer, AmadronRecipe offer, int times, net.minecraft.util.math.GlobalPos itemGPos, net.minecraft.util.math.GlobalPos liquidGPos)
public static boolean validateStockLevel(net.minecraft.entity.player.PlayerEntity orderingPlayer,
AmadronRecipe offer,
int times,
boolean isAmadronRestock)
public int getShoppingCartAmount(AmadronRecipe offer)
public void removed(net.minecraft.entity.player.PlayerEntity player)
removed in class net.minecraft.inventory.container.Container