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[] |
affordableOffers |
int |
currentPlayerOffers |
static int |
HARD_MAX_MB |
static int |
HARD_MAX_STACKS |
int |
maxPlayerOffers |
ContainerAmadron.EnumProblemState |
problemState |
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 |
clickOffer(net.minecraft.util.ResourceLocation 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 |
getShoppingBasketUnits(net.minecraft.util.ResourceLocation offerId) |
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 player,
int slot) |
void |
removed(net.minecraft.entity.player.PlayerEntity player) |
static EntityAmadrone |
retrieveOrder(java.lang.String playerName,
AmadronRecipe offer,
int units,
net.minecraft.util.math.GlobalPos itemGPos,
net.minecraft.util.math.GlobalPos liquidGPos) |
boolean |
stillValid(net.minecraft.entity.player.PlayerEntity player) |
void |
updateBasket(net.minecraft.util.ResourceLocation offerId,
int amount) |
static boolean |
validateStockLevel(java.lang.String playerName,
AmadronRecipe offer,
int units,
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, setItem, setSynched, slotsChanged, stillValidpublic static final int HARD_MAX_STACKS
public static final int HARD_MAX_MB
public final java.util.List<AmadronRecipe> activeOffers
public final boolean[] affordableOffers
public ContainerAmadron.EnumProblemState problemState
public int maxPlayerOffers
public int currentPlayerOffers
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 void updateBasket(net.minecraft.util.ResourceLocation offerId,
int amount)
public boolean isBasketEmpty()
public net.minecraft.util.Hand getHand()
public boolean stillValid(net.minecraft.entity.player.PlayerEntity player)
stillValid in class ContainerPneumaticBase<TileEntityBase>@Nonnull
public net.minecraft.item.ItemStack quickMoveStack(net.minecraft.entity.player.PlayerEntity player,
int slot)
quickMoveStack in class ContainerPneumaticBase<TileEntityBase>public void clickOffer(net.minecraft.util.ResourceLocation 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 retrieveOrder(java.lang.String playerName, AmadronRecipe offer, int units, net.minecraft.util.math.GlobalPos itemGPos, net.minecraft.util.math.GlobalPos liquidGPos)
public static boolean validateStockLevel(java.lang.String playerName,
AmadronRecipe offer,
int units,
boolean isAmadronRestock)
public int getShoppingBasketUnits(net.minecraft.util.ResourceLocation offerId)
public void removed(net.minecraft.entity.player.PlayerEntity player)
removed in class net.minecraft.inventory.container.Container