mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-24 05:54:25 +00:00
Changes necessary to support wood packs.
This commit is contained in:
1 parent
822f26749a
commit
3d744dbe09
4 files changed
+31
-12
No files matched your search
+13
-2
@@ -17,7 +17,7 @@ buildscript {
|
||||
|
||||
apply plugin: 'forge'
|
||||
|
||||
version = "1.7.10-1.4.6"
|
||||
version = "1.7.10-1.4.7"
|
||||
group= "com.jaquadro.minecraft.storagedrawers" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
archivesBaseName = "StorageDrawers"
|
||||
|
||||
@@ -98,4 +98,15 @@ task deobfJar(type: Jar) {
|
||||
|
||||
artifacts {
|
||||
archives deobfJar
|
||||
}
|
||||
}
|
||||
|
||||
task copyChicken(type: Copy, dependsOn: "extractUserDev") {
|
||||
from { configurations.compile }
|
||||
include "**/*Chicken*.jar", "**/*NotEnoughItems*.jar"
|
||||
exclude "**/CodeChickenLib*" // because CCC downloads it anyways.. -_-
|
||||
into file(minecraft.runDir + "/mods")
|
||||
mustRunAfter "deobfBinJar"
|
||||
mustRunAfter "repackMinecraft"
|
||||
}
|
||||
tasks.setupDevWorkspace.dependsOn copyChicken
|
||||
tasks.setupDecompWorkspace.dependsOn copyChicken
|
||||
@@ -58,19 +58,19 @@ public class BlockDrawers extends BlockContainer implements IExtendedBlockClickH
|
||||
public int indSteps = 0;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private IIcon[] iconSide;
|
||||
protected IIcon[] iconSide;
|
||||
@SideOnly(Side.CLIENT)
|
||||
private IIcon[] iconSideV;
|
||||
protected IIcon[] iconSideV;
|
||||
@SideOnly(Side.CLIENT)
|
||||
private IIcon[] iconSideH;
|
||||
protected IIcon[] iconSideH;
|
||||
@SideOnly(Side.CLIENT)
|
||||
private IIcon[] iconFront1;
|
||||
protected IIcon[] iconFront1;
|
||||
@SideOnly(Side.CLIENT)
|
||||
private IIcon[] iconFront2;
|
||||
protected IIcon[] iconFront2;
|
||||
@SideOnly(Side.CLIENT)
|
||||
private IIcon[] iconFront4;
|
||||
protected IIcon[] iconFront4;
|
||||
@SideOnly(Side.CLIENT)
|
||||
private IIcon[] iconTrim;
|
||||
protected IIcon[] iconTrim;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private IIcon[] iconOverlay;
|
||||
@@ -489,14 +489,14 @@ public class BlockDrawers extends BlockContainer implements IExtendedBlockClickH
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIconTrim (int meta) {
|
||||
meta %= BlockWood.field_150096_a.length;
|
||||
meta %= iconTrim.length;
|
||||
return iconTrim[meta];
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon (int side, int meta) {
|
||||
meta %= BlockWood.field_150096_a.length;
|
||||
meta %= iconSide.length;
|
||||
|
||||
switch (side) {
|
||||
case 0:
|
||||
@@ -543,7 +543,7 @@ public class BlockDrawers extends BlockContainer implements IExtendedBlockClickH
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
protected IIcon getIcon (IBlockAccess blockAccess, int x, int y, int z, int side, int level) {
|
||||
int meta = blockAccess.getBlockMetadata(x, y, z) % BlockWood.field_150096_a.length;
|
||||
int meta = blockAccess.getBlockMetadata(x, y, z) % iconSide.length;
|
||||
|
||||
TileEntityDrawers tile = getTileEntity(blockAccess, x, y, z);
|
||||
if (tile == null || side == tile.getDirection()) {
|
||||
|
||||
@@ -24,6 +24,10 @@ public class ItemDrawers extends ItemMultiTexture
|
||||
super(block, block, BlockWood.field_150096_a);
|
||||
}
|
||||
|
||||
protected ItemDrawers (Block block, String[] names) {
|
||||
super(block, block, names);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean placeBlockAt (ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ, int metadata) {
|
||||
if (!super.placeBlockAt(stack, player, world, x, y, z, side, hitX, hitY, hitZ, metadata))
|
||||
|
||||
@@ -9,4 +9,8 @@ public class ItemTrim extends ItemMultiTexture
|
||||
public ItemTrim (Block block) {
|
||||
super(block, block, BlockWood.field_150096_a);
|
||||
}
|
||||
|
||||
protected ItemTrim (Block block, String[] names) {
|
||||
super(block, block, names);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user