mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-14 09:46:53 -04:00
Adjusted ISidedInventory implementation for MC1.8.
This commit is contained in:
parent
2302d7b66f
commit
e0989ec2e4
@ -67,6 +67,8 @@ class Print(protected implicit val tileTag: ClassTag[tileentity.Print]) extends
|
||||
|
||||
override def isOpaqueCube = false
|
||||
|
||||
override def isVisuallyOpaque = false
|
||||
|
||||
override def isFullCube = false
|
||||
|
||||
override def shouldSideBeRendered(world: IBlockAccess, pos: BlockPos, side: EnumFacing) = true
|
||||
|
@ -318,9 +318,9 @@ class Printer extends traits.Environment with traits.Inventory with traits.Rotat
|
||||
|
||||
// ----------------------------------------------------------------------- //
|
||||
|
||||
override def getAccessibleSlotsFromSide(side: Int): Array[Int] = Array(slotMaterial, slotInk, slotOutput)
|
||||
override def getSlotsForFace(side: EnumFacing): Array[Int] = Array(slotMaterial, slotInk, slotOutput)
|
||||
|
||||
override def canExtractItem(slot: Int, stack: ItemStack, side: Int): Boolean = !isItemValidForSlot(slot, stack)
|
||||
override def canExtractItem(slot: Int, stack: ItemStack, side: EnumFacing): Boolean = !isItemValidForSlot(slot, stack)
|
||||
|
||||
override def canInsertItem(slot: Int, stack: ItemStack, side: Int): Boolean = slot != slotOutput
|
||||
override def canInsertItem(slot: Int, stack: ItemStack, side: EnumFacing): Boolean = slot != slotOutput
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user