mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 12:09:39 +00:00
Unify the way item and itemBlock tooltips are added
This commit is contained in:
1 parent
4259a55e7a
commit
2031f7fe02
17 files changed
+107
-138
No files matched your search
@@ -2,19 +2,19 @@ package forestry.plugins.compat;
|
||||
|
||||
import forestry.core.blocks.BlockBase;
|
||||
import forestry.core.blocks.BlockRegistry;
|
||||
import forestry.core.items.ItemBlockForestry;
|
||||
import forestry.energy.blocks.BlockEngine;
|
||||
import forestry.energy.blocks.BlockTypeEngine;
|
||||
import forestry.energy.items.ItemEngine;
|
||||
|
||||
public class BlockRegistryIC2 extends BlockRegistry {
|
||||
public final BlockBase electricalEngine;
|
||||
public final BlockEngine generator;
|
||||
|
||||
public BlockRegistryIC2() {
|
||||
electricalEngine = new BlockBase(BlockTypeEngine.ELECTRICAL);
|
||||
registerBlock(electricalEngine, new ItemEngine(electricalEngine), "engine_electrical");
|
||||
electricalEngine = new BlockBase<>(BlockTypeEngine.ELECTRICAL);
|
||||
registerBlock(electricalEngine, new ItemBlockForestry<>(electricalEngine), "engine_electrical");
|
||||
|
||||
generator = new BlockEngine(BlockTypeEngine.GENERATOR);
|
||||
registerBlock(generator, new ItemEngine(generator), "engine_generator");
|
||||
registerBlock(generator, new ItemBlockForestry<>(generator), "engine_generator");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user