mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-20 20:22:15 +00:00
Added buttons
Moved cuboid render function to CCC-Public Fixed a redstone transmission bug Added Tick Scheduler
This commit is contained in:
1 parent
283a723e38
commit
38adcdbee1
19 files changed
+561
-162
No files matched your search
@@ -2,7 +2,10 @@ package codechicken.multipart.minecraft;
|
||||
|
||||
import codechicken.core.data.MCDataInput;
|
||||
import codechicken.core.data.MCDataOutput;
|
||||
import codechicken.core.lighting.LazyLightMatrix;
|
||||
import codechicken.core.vec.BlockCoord;
|
||||
import codechicken.core.vec.Vector3;
|
||||
import net.minecraft.client.renderer.RenderBlocks;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
@@ -73,4 +76,16 @@ public abstract class McMetaPart extends McBlockPart implements IPartMeta
|
||||
{
|
||||
return new BlockCoord(getTile());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean doesTick()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderStatic(Vector3 pos, LazyLightMatrix olm, int pass)
|
||||
{
|
||||
new RenderBlocks(new PartMetaAccess(this)).renderBlockByRenderType(getBlock(), getTile().xCoord, getTile().yCoord, getTile().zCoord);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user