public abstract class ContainerBC_Neptune
extends net.minecraft.inventory.Container
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG |
protected static IdAllocator |
IDS |
static int |
NET_DATA
Generic "data" id.
|
static int |
NET_SET_PHANTOM |
static int |
NET_SET_PHANTOM_MULTI |
static int |
NET_WIDGET |
net.minecraft.entity.player.EntityPlayer |
player |
Constructor and Description |
---|
ContainerBC_Neptune(net.minecraft.entity.player.EntityPlayer player) |
Modifier and Type | Method and Description |
---|---|
protected void |
addFullPlayerInventory(int startY) |
protected void |
addFullPlayerInventory(int startX,
int startY) |
protected <W extends Widget_Neptune<?>> |
addWidget(W widget) |
IdAllocator |
getIdAllocator() |
com.google.common.collect.ImmutableList<Widget_Neptune<?>> |
getWidgets() |
void |
readMessage(int id,
PacketBufferBC buffer,
net.minecraftforge.fml.relauncher.Side side,
net.minecraftforge.fml.common.network.simpleimpl.MessageContext ctx) |
static net.minecraft.item.ItemStack |
safeCopy(net.minecraft.item.ItemStack in) |
void |
sendMessage(int id) |
void |
sendMessage(int id,
IPayloadWriter writer) |
void |
sendSetPhantomSlot(net.minecraftforge.items.IItemHandler handler,
int index,
net.minecraft.item.ItemStack to) |
void |
sendSetPhantomSlot(SlotPhantom slot,
net.minecraft.item.ItemStack to) |
void |
sendSetPhantomSlots(net.minecraftforge.items.IItemHandler handler,
java.util.List<net.minecraft.item.ItemStack> stacks) |
net.minecraft.item.ItemStack |
slotClick(int slotId,
int dragType,
net.minecraft.inventory.ClickType clickType,
net.minecraft.entity.player.EntityPlayer player) |
net.minecraft.item.ItemStack |
transferStackInSlot(net.minecraft.entity.player.EntityPlayer playerIn,
int index) |
void |
writeMessage(int id,
PacketBufferBC buffer,
net.minecraftforge.fml.relauncher.Side side) |
addListener, addSlotToContainer, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, canInteractWith, canMergeSlot, computeStackSize, detectAndSendChanges, enchantItem, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getSlotFromInventory, isValidDragMode, mergeItemStack, onContainerClosed, onCraftMatrixChanged, putStackInSlot, removeListener, resetDrag, retrySlotClick, setAll, setCanCraft, updateProgressBar
public static final boolean DEBUG
protected static final IdAllocator IDS
public static final int NET_DATA
IdAllocator
if they only allocate one.public static final int NET_WIDGET
public static final int NET_SET_PHANTOM
public static final int NET_SET_PHANTOM_MULTI
public final net.minecraft.entity.player.EntityPlayer player
public ContainerBC_Neptune(net.minecraft.entity.player.EntityPlayer player)
public IdAllocator getIdAllocator()
IdAllocator
that allocates all ID's for this class, and its parent classes. All subclasses
should override this if they allocate their own ids after calling
IdAllocator.makeChild(String)
protected void addFullPlayerInventory(int startX, int startY)
protected void addFullPlayerInventory(int startY)
protected <W extends Widget_Neptune<?>> W addWidget(W widget)
public com.google.common.collect.ImmutableList<Widget_Neptune<?>> getWidgets()
@Nullable public net.minecraft.item.ItemStack slotClick(int slotId, int dragType, net.minecraft.inventory.ClickType clickType, net.minecraft.entity.player.EntityPlayer player)
slotClick
in class net.minecraft.inventory.Container
public net.minecraft.item.ItemStack transferStackInSlot(net.minecraft.entity.player.EntityPlayer playerIn, int index)
transferStackInSlot
in class net.minecraft.inventory.Container
public static net.minecraft.item.ItemStack safeCopy(net.minecraft.item.ItemStack in)
public final void sendMessage(int id)
public final void sendMessage(int id, IPayloadWriter writer)
public void writeMessage(int id, PacketBufferBC buffer, net.minecraftforge.fml.relauncher.Side side)
public void readMessage(int id, PacketBufferBC buffer, net.minecraftforge.fml.relauncher.Side side, net.minecraftforge.fml.common.network.simpleimpl.MessageContext ctx) throws java.io.IOException
java.io.IOException
public void sendSetPhantomSlot(net.minecraftforge.items.IItemHandler handler, int index, net.minecraft.item.ItemStack to)
java.lang.IllegalArgumentException
- if a SlotPhantom
couldn't be found with that handler and indexpublic void sendSetPhantomSlots(net.minecraftforge.items.IItemHandler handler, java.util.List<net.minecraft.item.ItemStack> stacks)
stacks
- The list of stacks to send. NOTE: this list CAN include nulls -- that indicates that the item
should not be changed.java.lang.IllegalArgumentException
- if stacks.size()
differs from handler.getSlots()
, or if a SlotPhantom
couldn't be found for that handler and any of the
indexes associated with it.public void sendSetPhantomSlot(SlotPhantom slot, net.minecraft.item.ItemStack to)