Adjusted ISidedInventory implementation for MC1.8.

This commit is contained in:
Florian Nücke 2015-03-26 18:48:36 +01:00
parent 2302d7b66f
commit e0989ec2e4
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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
}