From 53b774469585beaccfb00f2318dd365a1a4023e6 Mon Sep 17 00:00:00 2001 From: thatsIch Date: Tue, 4 Nov 2014 02:33:31 +0100 Subject: [PATCH] Better specification which class is returned --- .../block/crafting/BlockCraftingStorage.java | 27 ++++++++++++++++--- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/src/main/java/appeng/block/crafting/BlockCraftingStorage.java b/src/main/java/appeng/block/crafting/BlockCraftingStorage.java index ee364c13..71b1b074 100644 --- a/src/main/java/appeng/block/crafting/BlockCraftingStorage.java +++ b/src/main/java/appeng/block/crafting/BlockCraftingStorage.java @@ -1,3 +1,21 @@ +/* + * This file is part of Applied Energistics 2. + * Copyright (c) 2013 - 2014, AlgorithmX2, All rights reserved. + * + * Applied Energistics 2 is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Applied Energistics 2 is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with Applied Energistics 2. If not, see . + */ + package appeng.block.crafting; import java.util.List; @@ -13,14 +31,15 @@ import appeng.tile.crafting.TileCraftingStorageTile; public class BlockCraftingStorage extends BlockCraftingUnit { - - public BlockCraftingStorage() { + public BlockCraftingStorage() + { super( BlockCraftingStorage.class ); + setTileEntity( TileCraftingStorageTile.class ); } @Override - public Class getItemBlockClass() + public Class getItemBlockClass() { return ItemCraftingStorage.class; } @@ -56,7 +75,7 @@ public class BlockCraftingStorage extends BlockCraftingUnit case 3: return ExtraBlockTextures.BlockCraftingStorage64k.getIcon(); - case 0 | FLAG_FORMED: + case FLAG_FORMED: return ExtraBlockTextures.BlockCraftingStorage1kFit.getIcon(); case 1 | FLAG_FORMED: return ExtraBlockTextures.BlockCraftingStorage4kFit.getIcon();