forked from AppliedEnergistics/Applied-Energistics-2
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
large crafting storage block (AppliedEnergistics#236)
- Loading branch information
Showing
18 changed files
with
170 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
src/main/java/appeng/block/crafting/BlockAdvancedCraftingStorage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package appeng.block.crafting; | ||
|
||
import appeng.client.texture.ExtraBlockTextures; | ||
import appeng.tile.crafting.TileCraftingStorageTile; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.util.IIcon; | ||
|
||
public class BlockAdvancedCraftingStorage extends BlockCraftingStorage { | ||
|
||
public BlockAdvancedCraftingStorage() { | ||
this.setTileEntity(TileCraftingStorageTile.class); | ||
} | ||
|
||
@Override | ||
public IIcon getIcon(final int direction, final int metadata) { | ||
switch (metadata & (~4)) { | ||
default: | ||
return super.getIcon(0, -1); | ||
case 0: | ||
return ExtraBlockTextures.BlockCraftingStorage256k.getIcon(); | ||
case 1: | ||
return ExtraBlockTextures.BlockCraftingStorage1024k.getIcon(); | ||
case 2: | ||
return ExtraBlockTextures.BlockCraftingStorage4096k.getIcon(); | ||
case 3: | ||
return ExtraBlockTextures.BlockCraftingStorage16384k.getIcon(); | ||
|
||
case FLAG_FORMED: | ||
return ExtraBlockTextures.BlockCraftingStorage256kFit.getIcon(); | ||
case 1 | FLAG_FORMED: | ||
return ExtraBlockTextures.BlockCraftingStorage1024kFit.getIcon(); | ||
case 2 | FLAG_FORMED: | ||
return ExtraBlockTextures.BlockCraftingStorage4096kFit.getIcon(); | ||
case 3 | FLAG_FORMED: | ||
return ExtraBlockTextures.BlockCraftingStorage16384kFit.getIcon(); | ||
} | ||
} | ||
|
||
@Override | ||
public String getUnlocalizedName(final ItemStack is) { | ||
switch (is.getItemDamage()) { | ||
case 0: | ||
return "tile.appliedenergistics2.BlockCraftingStorage256k"; | ||
case 1: | ||
return "tile.appliedenergistics2.BlockCraftingStorage1024k"; | ||
case 2: | ||
return "tile.appliedenergistics2.BlockCraftingStorage4096k"; | ||
case 3: | ||
return "tile.appliedenergistics2.BlockCraftingStorage16384k"; | ||
default: | ||
return this.getItemUnlocalizedName(is); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+364 Bytes
...ources/assets/appliedenergistics2/textures/blocks/BlockCraftingStorage1024k.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+313 Bytes
...ces/assets/appliedenergistics2/textures/blocks/BlockCraftingStorage1024kFit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+394 Bytes
...urces/assets/appliedenergistics2/textures/blocks/BlockCraftingStorage16384k.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+301 Bytes
...es/assets/appliedenergistics2/textures/blocks/BlockCraftingStorage16384kFit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+358 Bytes
...sources/assets/appliedenergistics2/textures/blocks/BlockCraftingStorage256k.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+312 Bytes
...rces/assets/appliedenergistics2/textures/blocks/BlockCraftingStorage256kFit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+341 Bytes
...ources/assets/appliedenergistics2/textures/blocks/BlockCraftingStorage4096k.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+293 Bytes
...ces/assets/appliedenergistics2/textures/blocks/BlockCraftingStorage4096kFit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.