Class SubFixedItemInv
java.lang.Object
alexiil.mc.lib.attributes.item.impl.AbstractPartialFixedItemInvView
alexiil.mc.lib.attributes.item.impl.SubFixedItemInvView
alexiil.mc.lib.attributes.item.impl.SubFixedItemInv
- All Implemented Interfaces:
- Convertible,- AbstractItemInvView,- FixedItemInv,- FixedItemInvView
- Direct Known Subclasses:
- SubFixedItemInv.OfCopying,- SubFixedItemInv.OfModifiable
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from interface alexiil.mc.lib.attributes.item.AbstractItemInvViewAbstractItemInvView.DefaultChangeTrackerNested classes/interfaces inherited from interface alexiil.mc.lib.attributes.item.FixedItemInvFixedItemInv.CopyingFixedItemInv, FixedItemInv.ModifiableFixedItemInv
- 
Field SummaryFields inherited from class alexiil.mc.lib.attributes.item.impl.SubFixedItemInvViewfromIndex, toIndexFields inherited from class alexiil.mc.lib.attributes.item.impl.AbstractPartialFixedItemInvViewinv
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic SubFixedItemInvcreate(FixedItemInv inv, int fromIndex, int toIndex)getMappedInv(int... slots)getSubInv(int fIndex, int tIndex)Equivalent toList.subList(int, int).booleansetInvStack(int slot, net.minecraft.item.ItemStack to, Simulation simulation)Sets the stack in the given slot to the given stack.Methods inherited from class alexiil.mc.lib.attributes.item.impl.SubFixedItemInvViewgetFixedView, getInternalSlot, getSlotCountMethods inherited from class alexiil.mc.lib.attributes.item.impl.AbstractPartialFixedItemInvViewaddListener, getChangeValue, getFilterForSlot, getInvStack, getMaxAmount, isItemValidForSlotMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface alexiil.mc.lib.attributes.item.AbstractItemInvViewaddListener, getChangeValueMethods inherited from interface alexiil.mc.lib.attributes.item.FixedItemInvcreateLimitedFixedInv, extractStack, forceSetInvStack, getExtractable, getGroupedInv, getInsertable, getInvStack, getSlot, getTransferable, insertStack, isItemValidForSlot, modifySlot, slotIterableMethods inherited from interface alexiil.mc.lib.attributes.item.FixedItemInvViewconvertTo, getFilterForSlot, getFixedView, getMaxAmount, getSlotCount, offerSelfAsAttribute, stackIterable
- 
Constructor Details- 
SubFixedItemInv
 
- 
- 
Method Details- 
setInvStackDescription copied from interface:FixedItemInvSets the stack in the given slot to the given stack.- Specified by:
- setInvStackin interface- FixedItemInv
- to- The new- ItemStack. It is not defined if you are allowed to modify this or not.
- Returns:
- True if the modification was allowed, false otherwise. (For example if the given stack doesn't pass the
         FixedItemInvView.isItemValidForSlot(int, ItemStack)test).
 
- 
getSubInvDescription copied from interface:FixedItemInvViewEquivalent toList.subList(int, int).- Specified by:
- getSubInvin interface- FixedItemInv
- Specified by:
- getSubInvin interface- FixedItemInvView
- Overrides:
- getSubInvin class- SubFixedItemInvView
- Parameters:
- fIndex- The first slot to expose
- tIndex- The slot after the last slot to expose.
- Returns:
- a view of this inventory that only exposes the given number of slots. Might return "this" if fromIndex is
         0 and toIndex is equal to FixedItemInvView.getSlotCount().
 
- 
getMappedInv- Specified by:
- getMappedInvin interface- FixedItemInv
- Specified by:
- getMappedInvin interface- FixedItemInvView
- Overrides:
- getMappedInvin class- SubFixedItemInvView
- Parameters:
- slots- The slots to expose.
- Returns:
- a view of this inventory that only exposes the given slots. Might return "this" if the slot array is just
         [0,1, ... FixedItemInvView.getSlotCount()-1]
 
- 
create
 
-