mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-22 21:19:49 +00:00
Initial 1.7 commit
This commit is contained in:
1 parent
2f2a18052a
commit
d89bc3848c
69 files changed
+1232
-1573
No files matched your search
@@ -2,7 +2,7 @@ package codechicken.multipart.minecraft;
|
||||
|
||||
import codechicken.lib.data.MCDataInput;
|
||||
import codechicken.lib.data.MCDataOutput;
|
||||
import codechicken.lib.lighting.LazyLightMatrix;
|
||||
import codechicken.lib.lighting.LightMatrix;
|
||||
import codechicken.lib.vec.BlockCoord;
|
||||
import codechicken.lib.vec.Vector3;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
@@ -58,12 +58,6 @@ public abstract class McMetaPart extends McBlockPart implements IPartMeta
|
||||
return meta;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getBlockId()
|
||||
{
|
||||
return getBlock().blockID;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlockCoord getPos()
|
||||
{
|
||||
@@ -77,9 +71,12 @@ public abstract class McMetaPart extends McBlockPart implements IPartMeta
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderStatic(Vector3 pos, LazyLightMatrix olm, int pass)
|
||||
public boolean renderStatic(Vector3 pos, int pass)
|
||||
{
|
||||
if(pass == 0)
|
||||
if(pass == 0) {
|
||||
new RenderBlocks(new PartMetaAccess(this)).renderBlockByRenderType(getBlock(), x(), y(), z());
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user