mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-24 05:54:34 +00:00
Fix JABBA-related issues with crafting station slots (#54)
* Fix shift-merging tools voiding items fixes <https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/11392> * Change 0-sized ItemStacks into null stacks in crafting station attached slots Fixes <https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues/10425> * Update buildscript * spotlessApply
This commit is contained in:
1 parent
18bfeaff32
commit
39be06c23b
571 files changed
+25959
-28223
No files matched your search
@@ -5,40 +5,36 @@ import net.minecraft.client.renderer.*;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author fuj1n
|
||||
*
|
||||
*
|
||||
*/
|
||||
public class Helper
|
||||
{
|
||||
public class Helper {
|
||||
|
||||
public static ForgeDirection convertMetaToForgeOrientation (int metadata)
|
||||
{
|
||||
switch (metadata)
|
||||
{
|
||||
case 6:
|
||||
return ForgeDirection.DOWN;
|
||||
case 7:
|
||||
return ForgeDirection.UP;
|
||||
case 1:
|
||||
return ForgeDirection.WEST;
|
||||
case 3:
|
||||
return ForgeDirection.NORTH;
|
||||
case 2:
|
||||
return ForgeDirection.EAST;
|
||||
case 4:
|
||||
return ForgeDirection.SOUTH;
|
||||
case 5:
|
||||
return ForgeDirection.DOWN;
|
||||
case 0:
|
||||
return ForgeDirection.UP;
|
||||
public static ForgeDirection convertMetaToForgeOrientation(int metadata) {
|
||||
switch (metadata) {
|
||||
case 6:
|
||||
return ForgeDirection.DOWN;
|
||||
case 7:
|
||||
return ForgeDirection.UP;
|
||||
case 1:
|
||||
return ForgeDirection.WEST;
|
||||
case 3:
|
||||
return ForgeDirection.NORTH;
|
||||
case 2:
|
||||
return ForgeDirection.EAST;
|
||||
case 4:
|
||||
return ForgeDirection.SOUTH;
|
||||
case 5:
|
||||
return ForgeDirection.DOWN;
|
||||
case 0:
|
||||
return ForgeDirection.UP;
|
||||
}
|
||||
|
||||
return ForgeDirection.UNKNOWN;
|
||||
}
|
||||
|
||||
public static void renderInventoryCube (Block block, int metadata, int modelID, RenderBlocks renderer)
|
||||
{
|
||||
public static void renderInventoryCube(Block block, int metadata, int modelID, RenderBlocks renderer) {
|
||||
Tessellator tessellator = Tessellator.instance;
|
||||
|
||||
tessellator.startDrawingQuads();
|
||||
@@ -71,5 +67,4 @@ public class Helper
|
||||
renderer.renderFaceZNeg(block, 0, 0, 0, renderer.getBlockIconFromSideAndMetadata(block, 5, metadata));
|
||||
tessellator.draw();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user