private void addToENet() { if (IntegrationRegistry.INSTANCE.isEnabled(IntegrationType.IC2)) { IIC2 ic2Integration = (IIC2) IntegrationRegistry.INSTANCE.getInstance(IntegrationType.IC2); if (!this.isInIC2 && Platform.isServer() && ic2Integration != null) { ic2Integration.addToEnergyNet(this); this.isInIC2 = true; } } }
private void removeFromENet() { if (IntegrationRegistry.INSTANCE.isEnabled(IntegrationType.IC2)) { IIC2 ic2Integration = (IIC2) IntegrationRegistry.INSTANCE.getInstance(IntegrationType.IC2); if (this.isInIC2 && Platform.isServer() && ic2Integration != null) { ic2Integration.removeFromEnergyNet(this); this.isInIC2 = false; } } }
private RenderItem setItemRender(final RenderItem item) { if (IntegrationRegistry.INSTANCE.isEnabled(IntegrationType.NEI)) { return ((INEI) IntegrationRegistry.INSTANCE.getInstance(IntegrationType.NEI)) .setItemRender(item); } else { final RenderItem ri = itemRender; itemRender = item; return ri; } }
@Override protected boolean enableSpaceClicking() { return !IntegrationRegistry.INSTANCE.isEnabled(IntegrationType.InvTweaks); }