package info.u_team.u_team_test.container;

import info.u_team.u_team_core.container.UTileEntityContainer;
import info.u_team.u_team_test.init.TestContainers;
import info.u_team.u_team_test.tileentity.BasicEnergyCreatorTileEntity;
import net.minecraft.entity.player.PlayerInventory;
import net.minecraft.network.PacketBuffer;

public class BasicEnergyCreatorContainer extends UTileEntityContainer<BasicEnergyCreatorTileEntity> {
	
	public BasicEnergyCreatorContainer(int id, PlayerInventory playerInventory, PacketBuffer buffer) {
		super(TestContainers.BASIC_ENERGY_CREATOR.get(), id, playerInventory, buffer);
	}
	
	public BasicEnergyCreatorContainer(int id, PlayerInventory playerInventory, BasicEnergyCreatorTileEntity tileEntity) {
		super(TestContainers.BASIC_ENERGY_CREATOR.get(), id, playerInventory, tileEntity);
	}
	
	@Override
	protected void init(boolean server) {
		tileEntity.getSlots().ifPresent(handler -> appendInventory(handler, 2, 3, 116, 41));
		appendPlayerInventory(playerInventory, 8, 91);
		tileEntity.getEnergy().ifPresent(handler -> addServerToClientTracker(handler.createSyncHandler()));
	}
}

@@ -872,16 +872,32 @@
 er) %7B%0A%09%09
+appendInventory(
 tileEnti
@@ -913,53 +913,8 @@
 ts()
-.ifPresent(handler -%3E appendInventory(handler
 , 2,
@@ -925,17 +925,16 @@
 116, 41)
-)
 ;%0A%09%09appe
@@ -982,52 +982,8 @@
 ;%0A%09%09
-tileEntity.getEnergy().ifPresent(handler -%3E 
 addS
@@ -1007,15 +1007,30 @@
 ker(
-handler
+tileEntity.getEnergy()
 .cre
@@ -1046,16 +1046,15 @@
 ndler())
-)
 ;%0A%09%7D%0A%7D%0A

Fix basic energy container