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;
     }
   }
 }