public class AttributeFilterContainer extends AbstractFilterContainer
| Modifier and Type | Class and Description |
|---|---|
static class |
AttributeFilterContainer.WhitelistMode |
ghostInventorycontentHolder, player, playerInventory| Constructor and Description |
|---|
AttributeFilterContainer(net.minecraft.inventory.container.ContainerType<?> type,
int id,
net.minecraft.entity.player.PlayerInventory inv,
net.minecraft.item.ItemStack stack) |
AttributeFilterContainer(net.minecraft.inventory.container.ContainerType<?> type,
int id,
net.minecraft.entity.player.PlayerInventory inv,
net.minecraft.network.PacketBuffer extraData) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFilterSlots() |
void |
appendSelectedAttribute(ItemAttribute itemAttribute,
boolean inverted) |
boolean |
canDragTo(net.minecraft.inventory.container.Slot slotIn) |
boolean |
canTakeItemForPickAll(net.minecraft.item.ItemStack stack,
net.minecraft.inventory.container.Slot slotIn) |
void |
clearContents() |
net.minecraft.item.ItemStack |
clicked(int slotId,
int dragType,
net.minecraft.inventory.container.ClickType clickTypeIn,
net.minecraft.entity.player.PlayerEntity player) |
static AttributeFilterContainer |
create(int id,
net.minecraft.entity.player.PlayerInventory inv,
net.minecraft.item.ItemStack stack) |
protected net.minecraftforge.items.ItemStackHandler |
createGhostInventory() |
protected int |
getPlayerInventoryXOffset() |
protected int |
getPlayerInventoryYOffset() |
protected void |
init(net.minecraft.entity.player.PlayerInventory inv,
net.minecraft.item.ItemStack contentHolder) |
protected void |
initAndReadInventory(net.minecraft.item.ItemStack filterItem) |
net.minecraft.item.ItemStack |
quickMoveStack(net.minecraft.entity.player.PlayerEntity playerIn,
int index) |
protected void |
saveData(net.minecraft.item.ItemStack filterItem) |
addSlots, allowRepeats, createOnClient, stillValidaddPlayerSlots, removedaddDataSlot, addDataSlots, addSlot, addSlotListener, backup, broadcastChanges, canItemQuickReplace, checkContainerDataCount, checkContainerSize, clearContainer, clickMenuButton, consideredTheSameItem, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getType, isSynched, isValidQuickcraftType, moveItemStackTo, removeSlotListener, resetQuickCraft, setAll, setData, setItem, setSynched, slotsChanged, stillValidclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsendClearPacketpublic AttributeFilterContainer(net.minecraft.inventory.container.ContainerType<?> type,
int id,
net.minecraft.entity.player.PlayerInventory inv,
net.minecraft.network.PacketBuffer extraData)
public AttributeFilterContainer(net.minecraft.inventory.container.ContainerType<?> type,
int id,
net.minecraft.entity.player.PlayerInventory inv,
net.minecraft.item.ItemStack stack)
public static AttributeFilterContainer create(int id, net.minecraft.entity.player.PlayerInventory inv, net.minecraft.item.ItemStack stack)
public void appendSelectedAttribute(ItemAttribute itemAttribute, boolean inverted)
protected void init(net.minecraft.entity.player.PlayerInventory inv,
net.minecraft.item.ItemStack contentHolder)
init in class ContainerBase<net.minecraft.item.ItemStack>protected int getPlayerInventoryXOffset()
getPlayerInventoryXOffset in class AbstractFilterContainerprotected int getPlayerInventoryYOffset()
getPlayerInventoryYOffset in class AbstractFilterContainerprotected void addFilterSlots()
addFilterSlots in class AbstractFilterContainerprotected net.minecraftforge.items.ItemStackHandler createGhostInventory()
createGhostInventory in class GhostItemContainer<net.minecraft.item.ItemStack>public void clearContents()
clearContents in interface IClearableContainerclearContents in class GhostItemContainer<net.minecraft.item.ItemStack>public net.minecraft.item.ItemStack clicked(int slotId,
int dragType,
net.minecraft.inventory.container.ClickType clickTypeIn,
net.minecraft.entity.player.PlayerEntity player)
clicked in class AbstractFilterContainerpublic boolean canDragTo(net.minecraft.inventory.container.Slot slotIn)
canDragTo in class GhostItemContainer<net.minecraft.item.ItemStack>public boolean canTakeItemForPickAll(net.minecraft.item.ItemStack stack,
net.minecraft.inventory.container.Slot slotIn)
canTakeItemForPickAll in class GhostItemContainer<net.minecraft.item.ItemStack>public net.minecraft.item.ItemStack quickMoveStack(net.minecraft.entity.player.PlayerEntity playerIn,
int index)
quickMoveStack in class GhostItemContainer<net.minecraft.item.ItemStack>protected void initAndReadInventory(net.minecraft.item.ItemStack filterItem)
initAndReadInventory in class GhostItemContainer<net.minecraft.item.ItemStack>protected void saveData(net.minecraft.item.ItemStack filterItem)
saveData in class AbstractFilterContainer