public class ContainerAbilityContainer extends org.cyclops.cyclopscore.inventory.container.ItemInventoryContainer<ItemGuiAbilityContainer>
item, itemIndex
guiProvider
Constructor and Description |
---|
ContainerAbilityContainer(net.minecraft.entity.player.EntityPlayer player,
int itemIndex)
Make a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canInteractWith(net.minecraft.entity.player.EntityPlayer player) |
GuiAbilityContainer |
getGui() |
org.cyclops.cyclopscore.inventory.IGuiContainerProviderConfigurable |
getGuiProvider() |
java.util.List<Ability> |
getItemAbilities() |
IMutableAbilityStore |
getItemAbilityStore() |
java.util.List<Ability> |
getPlayerAbilities() |
IMutableAbilityStore |
getPlayerAbilityStore() |
protected int |
getSizeInventory() |
void |
moveFromPlayer(Ability playerAbility) |
void |
moveToPlayer(Ability itemAbility) |
void |
setGui(GuiAbilityContainer gui) |
createNewSlot, getItem, getItemStack
addInventory, addListener, addPlayerArmorInventory, addPlayerInventory, addSlotToContainer, adjustPhantomSlot, fillPhantomSlot, getNextValueId, getPlayerIInventory, getSlotRange, getSlotStart, getValue, initializeValues, mergeItemStack, onButtonClick, onUpdate, putButtonAction, requiresAction, setGuiValueListener, setValue, slotClick, transferStackInSlot
calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, canMergeSlot, computeStackSize, detectAndSendChanges, enchantItem, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getSlotFromInventory, isValidDragMode, onContainerClosed, onCraftMatrixChanged, putStackInSlot, removeListener, resetDrag, retrySlotClick, setAll, setCanCraft, updateProgressBar
public ContainerAbilityContainer(net.minecraft.entity.player.EntityPlayer player, int itemIndex)
player
- The player.itemIndex
- The index of the item in use inside the player inventory.public org.cyclops.cyclopscore.inventory.IGuiContainerProviderConfigurable getGuiProvider()
getGuiProvider
in class org.cyclops.cyclopscore.inventory.container.InventoryContainerConfigurable
public void setGui(GuiAbilityContainer gui)
public GuiAbilityContainer getGui()
protected int getSizeInventory()
getSizeInventory
in class org.cyclops.cyclopscore.inventory.container.InventoryContainer
public IMutableAbilityStore getPlayerAbilityStore()
public IMutableAbilityStore getItemAbilityStore()
@Nullable public java.util.List<Ability> getPlayerAbilities()
public java.util.List<Ability> getItemAbilities()
public void moveFromPlayer(Ability playerAbility)
public void moveToPlayer(Ability itemAbility)
public boolean canInteractWith(net.minecraft.entity.player.EntityPlayer player)
canInteractWith
in class org.cyclops.cyclopscore.inventory.container.ItemInventoryContainer<ItemGuiAbilityContainer>