use of logisticspipes.blocks.LogisticsSolidBlock in project LogisticsPipes by RS485.
the class LogisticsPipes method initItems.
private void initItems(Side side) {
boolean isClient = side == Side.CLIENT;
Object renderer = null;
if (isClient) {
renderer = new FluidContainerRenderer();
}
LogisticsPipes.LogisticsItemCard = new LogisticsItemCard();
LogisticsPipes.LogisticsItemCard.setUnlocalizedName("logisticsItemCard");
GameRegistry.registerItem(LogisticsPipes.LogisticsItemCard, LogisticsPipes.LogisticsItemCard.getUnlocalizedName());
if (isClient) {
MinecraftForgeClient.registerItemRenderer(LogisticsPipes.LogisticsItemCard, (FluidContainerRenderer) renderer);
}
LogisticsPipes.LogisticsRemoteOrderer = new RemoteOrderer();
LogisticsPipes.LogisticsRemoteOrderer.setUnlocalizedName("remoteOrdererItem");
GameRegistry.registerItem(LogisticsPipes.LogisticsRemoteOrderer, LogisticsPipes.LogisticsRemoteOrderer.getUnlocalizedName());
ItemPipeSignCreator.registerPipeSignTypes();
LogisticsPipes.LogisticsCraftingSignCreator = new ItemPipeSignCreator();
LogisticsPipes.LogisticsCraftingSignCreator.setUnlocalizedName("ItemPipeSignCreator");
GameRegistry.registerItem(LogisticsPipes.LogisticsCraftingSignCreator, LogisticsPipes.LogisticsCraftingSignCreator.getUnlocalizedName());
int renderIndex;
if (isClient) {
renderIndex = RenderingRegistry.addNewArmourRendererPrefix("LogisticsHUD");
} else {
renderIndex = 0;
}
LogisticsPipes.LogisticsHUDArmor = new ItemHUDArmor(renderIndex);
LogisticsPipes.LogisticsHUDArmor.setUnlocalizedName("logisticsHUDGlasses");
GameRegistry.registerItem(LogisticsPipes.LogisticsHUDArmor, LogisticsPipes.LogisticsHUDArmor.getUnlocalizedName());
LogisticsPipes.LogisticsParts = new ItemParts();
LogisticsPipes.LogisticsParts.setUnlocalizedName("logisticsParts");
GameRegistry.registerItem(LogisticsPipes.LogisticsParts, LogisticsPipes.LogisticsParts.getUnlocalizedName());
SimpleServiceLocator.buildCraftProxy.registerTrigger();
LogisticsPipes.ModuleItem = new ItemModule();
LogisticsPipes.ModuleItem.setUnlocalizedName("itemModule");
LogisticsPipes.ModuleItem.loadModules();
GameRegistry.registerItem(LogisticsPipes.ModuleItem, LogisticsPipes.ModuleItem.getUnlocalizedName());
LogisticsPipes.LogisticsItemDisk = new ItemDisk();
LogisticsPipes.LogisticsItemDisk.setUnlocalizedName("itemDisk");
GameRegistry.registerItem(LogisticsPipes.LogisticsItemDisk, LogisticsPipes.LogisticsItemDisk.getUnlocalizedName());
LogisticsPipes.UpgradeItem = new ItemUpgrade();
LogisticsPipes.UpgradeItem.setUnlocalizedName("itemUpgrade");
LogisticsPipes.UpgradeItem.loadUpgrades();
GameRegistry.registerItem(LogisticsPipes.UpgradeItem, LogisticsPipes.UpgradeItem.getUnlocalizedName());
LogisticsPipes.LogisticsFluidContainer = new LogisticsFluidContainer();
LogisticsPipes.LogisticsFluidContainer.setUnlocalizedName("logisticsFluidContainer");
if (isClient) {
MinecraftForgeClient.registerItemRenderer(LogisticsPipes.LogisticsFluidContainer, (FluidContainerRenderer) renderer);
}
GameRegistry.registerItem(LogisticsPipes.LogisticsFluidContainer, LogisticsPipes.LogisticsFluidContainer.getUnlocalizedName());
LogisticsPipes.LogisticsBrokenItem = new LogisticsBrokenItem();
LogisticsPipes.LogisticsBrokenItem.setUnlocalizedName("brokenItem");
GameRegistry.registerItem(LogisticsPipes.LogisticsBrokenItem, LogisticsPipes.LogisticsBrokenItem.getUnlocalizedName());
LogisticsPipes.LogisticsPipeControllerItem = new ItemPipeController();
LogisticsPipes.LogisticsPipeControllerItem.setUnlocalizedName("pipeController");
GameRegistry.registerItem(LogisticsPipes.LogisticsPipeControllerItem, LogisticsPipes.LogisticsPipeControllerItem.getUnlocalizedName());
//Blocks
LogisticsPipes.LogisticsSolidBlock = new LogisticsSolidBlock();
GameRegistry.registerBlock(LogisticsPipes.LogisticsSolidBlock, LogisticsSolidBlockItem.class, "logisticsSolidBlock");
LogisticsPipes.LogisticsPipeBlock = new LogisticsBlockGenericPipe();
GameRegistry.registerBlock(LogisticsPipes.LogisticsPipeBlock, "logisticsPipeBlock");
LogisticsPipes.LogisticsSubMultiBlock = new LogisticsBlockGenericSubMultiBlock();
GameRegistry.registerBlock(LogisticsPipes.LogisticsSubMultiBlock, "logisticsSubMultiBlock");
LogisticsChips = new ItemLogisticsChips();
LogisticsChips.setUnlocalizedName("logisticsChips");
GameRegistry.registerItem(LogisticsChips, LogisticsChips.getUnlocalizedName());
registerPipes(side);
}
Aggregations