mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-20 04:09:45 +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
@@ -15,6 +15,7 @@ public class Content implements IPartFactory, IPartConverter
|
||||
{
|
||||
if(name.equals("mc_torch")) return new TorchPart();
|
||||
if(name.equals("mc_lever")) return new LeverPart();
|
||||
if(name.equals("mc_button")) return new ButtonPart();
|
||||
|
||||
return null;
|
||||
}
|
||||
@@ -24,7 +25,8 @@ public class Content implements IPartFactory, IPartConverter
|
||||
MultiPartRegistry.registerConverter(this);
|
||||
MultiPartRegistry.registerParts(this, new String[]{
|
||||
"mc_torch",
|
||||
"mc_lever"
|
||||
"mc_lever",
|
||||
"mc_button"
|
||||
});
|
||||
}
|
||||
|
||||
@@ -32,7 +34,9 @@ public class Content implements IPartFactory, IPartConverter
|
||||
public boolean canConvert(int blockID)
|
||||
{
|
||||
return blockID == Block.torchWood.blockID ||
|
||||
blockID == Block.lever.blockID;
|
||||
blockID == Block.lever.blockID ||
|
||||
blockID == Block.stoneButton.blockID ||
|
||||
blockID == Block.woodenButton.blockID;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -44,6 +48,10 @@ public class Content implements IPartFactory, IPartConverter
|
||||
return new TorchPart(meta);
|
||||
if(id == Block.lever.blockID)
|
||||
return new LeverPart(meta);
|
||||
if(id == Block.stoneButton.blockID)
|
||||
return new ButtonPart(meta);
|
||||
if(id == Block.woodenButton.blockID)
|
||||
return new ButtonPart(meta|0x10);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user