Jump to content

Recommended Posts

Posted

My tanks have problems with storing the Fluid. its always null but he know what is inside of him.

I mean when i put 1 water bucket and 1 lava bucket in then i get these back if i extract it.

But when i want to display it on my GUI then the fluid is always null.

 

here my code:

 

GUI:

package speiger.src.api.client.gui;

import net.minecraft.block.Block;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Icon;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.StatCollector;
import net.minecraftforge.client.ForgeHooksClient;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidStack;

import org.lwjgl.opengl.GL11;

import speiger.src.api.common.container.ContainerCompressor;
import speiger.src.api.common.tile.BasicCompressor;
import cpw.mods.fml.common.Loader;

public class GuiCompressor extends GuiContainer
{
private BasicCompressor tile;

    public GuiCompressor(InventoryPlayer par1, BasicCompressor par2)
{
	super(new ContainerCompressor(par1, par2));
	tile = par2;
	this.ySize = 178;
}

protected void drawGuiContainerForegroundLayer(int par1, int par2)
    {
        this.fontRenderer.drawString(StatCollector.translateToLocal("container.inventory"), 8, this.ySize - 96 + 2, 4210752);
	int cornerX = (width - xSize) / 2;
	int cornerY = (height - ySize) / 2;
	int textID = codeID(par1 - cornerX, par2 - cornerY);
	switch(textID)
	{
		case 1:
			if(Loader.isModLoaded("BuildCraft|Energy"))this.drawCreativeTabHoveringText("Energy: "+tile.fuel+"MJ / "+3000+"MJ", par1-cornerX, par2-cornerY);
			else this.drawCreativeTabHoveringText("Energy: "+tile.fuel+"  / "+3000, par1-cornerX, par2-cornerY);
			break;
		case 2:
			if(tile.first.getFluid() == null || tile.first.getFluid().fluidID == 0) this.drawCreativeTabHoveringText("Empty Tank: "+"0mB / "+tile.first.getCapacity()+"mB", par1-cornerX, par2-cornerY);
			else if(tile.first.getFluid() != null && new ItemStack(tile.first.getFluid().fluidID, 1, 0) != null) this.drawCreativeTabHoveringText("Filled Tank: "+new ItemStack(tile.first.getFluid().fluidID, 1, 0)+" "+tile.first.getFluid().amount+"mB / "+tile.first.getCapacity()+"mB", par1-cornerX, par2-cornerY);
			else this.drawCreativeTabHoveringText("Filled Tank: "+"Unknowen Liquid"+" "+tile.first.getFluid().amount+"mB / "+tile.first.getCapacity()+"mB", par1-cornerX, par2-cornerY);
			break;
		case 3:
			if(tile.second.getFluid() == null || tile.second.getFluid().fluidID == 0) this.drawCreativeTabHoveringText("Empty Tank: "+"0mB / "+tile.second.getCapacity()+"mB", par1-cornerX, par2-cornerY);
			else if(tile.second.getFluid() != null && new ItemStack(tile.second.getFluid().fluidID, 1, 0) != null) this.drawCreativeTabHoveringText("Filled Tank: "+new ItemStack(tile.second.getFluid().fluidID, 1, 0)+" "+tile.second.getFluid().amount+"mB / "+tile.second.getCapacity()+"mB", par1-cornerX, par2-cornerY);
			else this.drawCreativeTabHoveringText("Filled Tank: "+"Unknowen Liquid"+" "+tile.second.getFluid().amount+"mB / "+tile.second.getCapacity()+"mB", par1-cornerX, par2-cornerY);

	}
    }


    private static final ResourceLocation var4 = new ResourceLocation("spmodapi:textures/gui/SqueezingCompressor.png");


    protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
    {
        GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
        this.mc.renderEngine.bindTexture(var4);
        int var5 = (this.width - this.xSize) / 2;
        int var6 = (this.height - this.ySize) / 2;
        this.drawTexturedModalRect(var5, var6, 0, 0, this.xSize, this.ySize);
        
        if(tile.progress > 0)
        {
        	this.drawTexturedModalRect(var5+49, var6+29, 55, 181, tile.progress / 12, 21);	
        }
        
        if(tile.fuel > 0)
        {
        	int fuel = tile.fuel / 190;
        	this.drawTexturedModalRect(var5+134, var6+75+16-fuel, 176, 84+16-fuel, 12, fuel);
        }
        
        if(tile.getTankScaled(58, true) > 0)
        {
        	this.displayGauge(var5, var6, 18, 68, tile.getTankScaled(58, true), tile.getLiquidID(true));
        }
        
        if(tile.getTankScaled(58, false) > 0)
        {
        	this.displayGauge(var5, var6, 18, 92, tile.getTankScaled(58, false), tile.getLiquidID(false));
        }
        

        
    }

private static final ResourceLocation BLOCK_TEXTURE = TextureMap.locationBlocksTexture;
    
private void displayGauge(int j, int k, int line, int col, int squaled, FluidStack liquid) {
	if (liquid == null) {
		return;
	}
	int start = 0;

	Icon liquidIcon = null;
	Fluid fluid = liquid.getFluid();
	if (fluid != null && fluid.getStillIcon() != null) {
		liquidIcon = fluid.getStillIcon();
	}
	mc.renderEngine.bindTexture(BLOCK_TEXTURE);

	if (liquidIcon != null) {
		while (true) {
			int x;

			if (squaled > 16) {
				x = 16;
				squaled -= 16;
			} else {
				x = squaled;
				squaled = 0;
			}

			drawTexturedModelRectFromIcon(j + col, k + line + 58 - x - start, liquidIcon, 16, 16 - (16 - x));
			start = start + 16;

			if (x == 0 || squaled == 0) {
				break;
			}
		}
	}

	mc.renderEngine.bindTexture(var4);
	drawTexturedModalRect(j + col, k + line, 176, 0, 16, 60);
}




public int codeID(int x, int y)
{
	if(x >=135 && x <=145 && y >= 76 && y <= 88)return 1;
	if(x >=68 && x<=83 && y>=18 && y<=75) return 2;
	if(x >=92 && x<=107 && y>=18 && y<=75) return 3;
	return -1;
}



}

 

TileEntity:

package speiger.src.api.common.tile;

import java.util.ArrayList;
import java.util.Random;

import cpw.mods.fml.common.FMLLog;

import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.ICrafting;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.ISidedInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.network.INetworkManager;
import net.minecraft.network.packet.Packet;
import net.minecraft.network.packet.Packet132TileEntityData;
import net.minecraft.world.World;
import net.minecraftforge.common.ForgeDirection;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidContainerRegistry;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.fluids.FluidTank;
import net.minecraftforge.fluids.FluidTankInfo;
import net.minecraftforge.fluids.IFluidHandler;
import net.minecraftforge.liquids.LiquidContainerRegistry;
import net.minecraftforge.liquids.LiquidStack;
import speiger.src.api.api.recipes.EnumRecipeType;
import speiger.src.api.api.recipes.recipe.INormalRecipe;
import speiger.src.api.api.recipes.result.Result;
import speiger.src.api.client.core.PathProxyClient;
import speiger.src.api.common.container.ContainerCompressor;
import speiger.src.api.common.debug.DebugCore;
import speiger.src.api.common.functions.MachineRecipeMaker;
import speiger.src.api.common.functions.WorldReading;

public class BasicCompressor extends TileFacing implements IFluidHandler, IInventory, ISidedInventory
{
public Random rand = new Random();
public int progress = 0;
public int fuel = 0;
public int mode = 0;
public int cound = 0;
public FluidTank first = new FluidTank(16000);
public FluidTank second = new FluidTank(16000);
public ItemStack[] inventory = new ItemStack[14];
public boolean update = false;
public boolean naturalEnergy = false;
MachineRecipeMaker recipes = MachineRecipeMaker.getRecipes();
ArrayList<ItemStack> drops = new ArrayList<ItemStack>();
ArrayList<FluidStack> liquidDrops = new ArrayList<FluidStack>();


@Override
public int getTextureFromTile(int meta, int side)
{
	if(side == 0 || side == 1)return 133;
	else if(side == ForgeDirection.getOrientation(facing).ordinal())return 131;
	else if(side == ForgeDirection.getOrientation(facing).getOpposite().ordinal())return 132;
	else return 134;
}



@Override
public Packet getDescriptionPacket()
{
    	NBTTagCompound var1 = new NBTTagCompound();
    	super.writeToNBT(var1);
    	var1.setInteger("rotation", facing);
    	var1.setInteger("Progress", progress);
    	var1.setInteger("Fuels", fuel);
    	var1.setInteger("Mode", mode);
	if (first.getFluid() != null) {
		var1.setTag("FirstTank", first.getFluid().writeToNBT(new NBTTagCompound()));
	}
	if (second.getFluid() != null) {
		var1.setTag("Second", second.getFluid().writeToNBT(new NBTTagCompound()));
	}
    	return new Packet132TileEntityData(this.xCoord, this.yCoord, this.zCoord, 1, var1);
}



@Override
public void onDataPacket(INetworkManager net, Packet132TileEntityData pkt)
{
	this.readFromNBT(pkt.data);
}







@Override
public void updateEntity()
{
	super.updateEntity();
	if(update)
	{
		update = false;
		this.onInventoryChanged();
	}





	updateBlock();
	if(!this.worldObj.isRemote)
	{
		EntityPlayer player = this.worldObj.getClosestPlayer(xCoord, yCoord, zCoord, DebugCore.detectRange);

		if(progress > 0 && fuel > 0)
		{
			if(cound >= DebugCore.tickrate)
			{
				if(player != null)
				{
					this.worldObj.playSoundEffect(xCoord, yCoord, zCoord, this.getSoundFromMode(mode), DebugCore.loudness, DebugCore.range);
				}

				cound = 0;
			}
			else
			{
				cound++;
			}
		}

		if(first.getFluid() != null && first.getFluid().amount <= 0)
		{
			first.setFluid(null);
		}
		if(second.getFluid() != null && second.getFluid().amount <= 0)
		{
			second.setFluid(null);
		}

		updateSlots();
		onBCUpdate();
		onRedstoneUpdate();
		fillBuckets();
		doSomething();
		createSymbol();
		if(!drops.isEmpty() || !liquidDrops.isEmpty())
		{
			if(!drops.isEmpty())
			{
				emptyItemArray();
			}
			if(!liquidDrops.isEmpty())
			{
				emptyLiquidArray();
			}
		}
		update = true;
	}
}


public String getSoundFromMode(int par1)
{
	if(par1 == 0) return "textures.compressorSound";
	else if(par1 == 1) return "textures.sqeezerSound";
	else return "textures.mixerSound";
}

public void createSymbol()
{
	ItemStack display = new ItemStack(Block.pistonStickyBase);
	NBTTagCompound nbt = new NBTTagCompound();
	nbt.setCompoundTag("display", new NBTTagCompound());
	nbt.getCompoundTag("display").setString("Name", "Sqeezing Compressor");
	display.setTagCompound(nbt);
	switch(mode)
	{
		case 0:
			PathProxyClient.addItemToolTip(display, "tip", "Compressing Mode");
			break;
		case 1:
			PathProxyClient.addItemToolTip(display, "tip", "Sqeezing Mode");
			break;
		case 2:
			PathProxyClient.addItemToolTip(display, "tip", "Mixing Mode");
	}


	inventory[13] = display.copy();
}

public void fillBuckets()
{
	if(inventory[1] != null)
	{
		if(FluidContainerRegistry.isBucket(inventory[1]) || FluidContainerRegistry.isContainer(inventory[1]))
		{
			if(FluidContainerRegistry.isEmptyContainer(inventory[1]) && drops.isEmpty())
			{
				if(first.getFluid() != null && first.getFluid().amount > 0)
				{
					ItemStack stack = FluidContainerRegistry.fillFluidContainer(first.getFluid(), inventory[1]);
					if(stack != null)
					{
						int size = FluidContainerRegistry.getFluidForFilledItem(stack).amount;
						if(first.getFluid().amount >= size)
						{
							inventory[1].stackSize--;
							if(inventory[1].stackSize <= 0)
							{
								inventory[1] = null;
							}
							first.drain(size, true);
							drops.add(stack.copy());
							return;
						}
					}
				}
			}
			if(FluidContainerRegistry.isFilledContainer(inventory[1]))
			{
				if(liquidDrops.isEmpty() && drops.isEmpty())
				{
					FluidStack stack = FluidContainerRegistry.getFluidForFilledItem(inventory[1]);
					if(stack != null)
					{
						inventory[1].stackSize--;
						liquidDrops.add(stack.copy());
						ItemStack chance = inventory[1].getItem().getContainerItemStack(inventory[1]);
						if(chance != null)
						{
							drops.add(chance.copy());
						}
						if(inventory[1].stackSize <= 0)
						{
							inventory[1] = null;
						}
						return;
					}
				}
			}
		}
	}
	if(inventory[2] != null)
	{
		if(FluidContainerRegistry.isBucket(inventory[2]) || FluidContainerRegistry.isContainer(inventory[2]))
		{
			if(FluidContainerRegistry.isEmptyContainer(inventory[2]) && drops.isEmpty())
			{
				if(second.getFluid() != null && second.getFluid().amount > 0)
				{
					ItemStack stack = FluidContainerRegistry.fillFluidContainer(second.getFluid(), inventory[2]);
					if(stack != null)
					{
						int size = FluidContainerRegistry.getFluidForFilledItem(stack).amount;
						if(second.getFluid().amount >= size)
						{
							inventory[2].stackSize--;
							if(inventory[2].stackSize <= 0)
							{
								inventory[2] = null;
							}
							second.drain(size, true);
							drops.add(stack.copy());
							return;
						}
					}
				}
			}
			if(FluidContainerRegistry.isFilledContainer(inventory[2]))
			{
				if(liquidDrops.isEmpty() && drops.isEmpty())
				{
					FluidStack stack = FluidContainerRegistry.getFluidForFilledItem(inventory[2]);
					if(stack != null)
					{
						inventory[2].stackSize--;
						liquidDrops.add(stack.copy());
						ItemStack chance = inventory[2].getItem().getContainerItemStack(inventory[2]);
						if(chance != null)
						{
							drops.add(chance.copy());
						}
						if(inventory[2].stackSize <= 0)
						{
							inventory[2] = null;
						}
						return;
					}
				}
			}
		}
	}

}

    public void updateBlock()
    {
        int var1 = this.worldObj.getBlockMetadata(this.xCoord, this.yCoord, this.zCoord);
        this.worldObj.markBlockForRenderUpdate(this.xCoord, this.yCoord, this.zCoord);
        markBlockDirty(this.worldObj, this.xCoord, this.yCoord, this.zCoord);
    }

    public void markBlockDirty(World var0, int var1, int var2, int var3)
    {
        if (var0.blockExists(var1, var2, var3))
        {
            var0.getChunkFromBlockCoords(var1, var3).setChunkModified();
        }
    }

public void onRedstoneUpdate()
{
	if(fuel < 3000)
	{
		if(this.naturalEnergy && !isPowered())
		{
			fuel+=10;
			naturalEnergy = false;
		}
		if(!this.naturalEnergy && isPowered())
		{
			this.naturalEnergy = true;
		}
	}
}

public boolean isPowered()
{
	return WorldReading.isGettingPowered(worldObj, xCoord, yCoord, zCoord) || this.worldObj.isBlockIndirectlyGettingPowered(xCoord, yCoord, zCoord);
}

public void emptyLiquidArray()
{
	for(int i = 0;i<liquidDrops.size();i++)
	{
		if(first.getFluid() == null)
		{
			first.fill(liquidDrops.get(i), true);
			liquidDrops.remove(i);
			continue;
		}
		else
		{
			if(first.fill(liquidDrops.get(i), false) > 0)
			{
				first.fill(liquidDrops.get(i), true);
				liquidDrops.remove(i);
				continue;
			}
		}

		if(second.getFluid() == null)
		{
			second.fill(liquidDrops.get(i), true);
			liquidDrops.remove(i);
			continue;
		}
		else
		{
			if(second.fill(liquidDrops.get(i), false) > 0)
			{
				second.fill(liquidDrops.get(i), true);
				liquidDrops.remove(i);
				continue;
			}
		}

	}
}

public void emptyItemArray()
{
	for(int i = 0;i<drops.size();i++)
	{
		if(inventory[8] == null)
		{
			inventory[8] = drops.get(i).copy();
			drops.remove(i);
		}
	}
}

public void updateSlots()
{
	transferItems(3, 4);
	transferItems(4, 5);
	transferItems(5, 6);
	transferItems(6, 7);

	transferItems(8, 9);
	transferItems(8, 10);
	transferItems(8, 11);
	transferItems(8, 12);
	transferItems(9, 10);
	transferItems(9, 12);
	transferItems(9, 11);
	transferItems(10, 11);
	transferItems(10, 12);
	transferItems(11, 12);
}



public void transferItems(int slot0, int slot1)
{
	if(inventory[slot0] != null)
	{
		if(inventory[slot1] == null)
		{
			inventory[slot1] = inventory[slot0].copy();
			inventory[slot0] = null;
			update = true;
		}
		else if(inventory[slot1] != null && inventory[slot1].isItemEqual(inventory[slot0]))
		{
			if(inventory[slot1].stackSize + inventory[slot0].stackSize <= 64)
			{
				inventory[slot1].stackSize += inventory[slot0].stackSize;
				inventory[slot0] = null;
				update = true;
			}
			else
			{
				int stacksize = (inventory[slot1].stackSize + inventory[slot0].stackSize) - 64;
				inventory[slot1].stackSize = 64;
				inventory[slot0].stackSize = stacksize;
				update = true;
			}
		}
	}
}

public void doSomething()
{
	int speed = getSpeedValue();
	if(speed == 0) return;

	EnumRecipeType type = getRecipeTypeFromMode(mode);
	if(type == null)return;


	if(inventory[7] != null && recipes.hasMatchingRecipe(type, inventory[7].copy(), first, second, worldObj))
	{
		if(fuel > 0 && drops.isEmpty() && liquidDrops.isEmpty())
		{
			progress+=speed;
			fuel-=speed;
			if(progress >= 1000)
			{
				INormalRecipe recipe = recipes.getRecipe(type, inventory[7].copy(), first, second, worldObj);
				if(recipe != null && recipe.getResult() != null)
				{
					Result[] output = recipe.getResult();
					for(int i = 0;i<output.length;i++)
					{
						Result current = output[i];
						if(current.hasItemResult(this.worldObj) && current.getItemResult(this.worldObj) != null && rand.nextInt(100) < current.getItemResultChance(this.worldObj))
						{
							drops.add(current.getItemResult(this.worldObj));
						}
						if(current.hasLiquidResult(this.worldObj) && current.getLiquidResult(this.worldObj) != null && rand.nextInt(100) < current.getLiquidResultChance(this.worldObj))
						{
							liquidDrops.add(current.getLiquidResult(this.worldObj));
						}

					}
					recipe.runResult(inventory[7], first, second, worldObj);
					if(inventory[7].stackSize <= 0)
					{
						inventory[7] = inventory[7].getItem().getContainerItemStack(inventory[7]);
					}
					progress = 0;
				}
				else
				{
					progress = 0;
				}
			}
		}
	}
	else
	{
		progress = 0;
	}


}

public void onBCUpdate()
{

}


public EnumRecipeType getRecipeTypeFromMode(int i)
{
	if(i == 0)
	{
		return EnumRecipeType.Compressor;
	}
	if(i == 1)
	{
		return EnumRecipeType.Sqeezer;
	}
	if(i == 2)
	{
		return EnumRecipeType.Mixer;
	}
	return null;
}


public int getSpeedValue()
{
	if(fuel > 0)
	{
		if(fuel > 100)
		{
			if(fuel > 500)
			{
				if(fuel > 1000)
				{
					return 4;
				}
				else
				{
					return 3;
				}
			}
			else
			{
				return 2;
			}
		}
		else
		{
			return 1;
		}
	}
	else
	{
		return 0;
	}
}

    public int getSizeInventory()
    {
        return this.inventory.length;
    }
    
    public ItemStack getStackInSlot(int par1)
    {
        return this.inventory[par1];
    }


    public ItemStack decrStackSize(int par1, int par2)
    {
        if (this.inventory[par1] != null)
        {
            ItemStack var3;

            if (this.inventory[par1].stackSize <= par2)
            {
                var3 = this.inventory[par1];
                this.inventory[par1] = null;
                return var3;
            }
            else
            {
                var3 = this.inventory[par1].splitStack(par2);

                if (this.inventory[par1].stackSize == 0)
                {
                    this.inventory[par1] = null;
                }

                return var3;
            }
        }
        else
        {
            return null;
        }
    }

    
    public ItemStack getStackInSlotOnClosing(int par1)
    {
        if (this.inventory[par1] != null)
        {
            ItemStack var2 = this.inventory[par1];
            this.inventory[par1] = null;
            return var2;
        }
        else
        {
            return null;
        }
    }

    
    public void setInventorySlotContents(int par1, ItemStack par2ItemStack)
    {
        this.inventory[par1] = par2ItemStack;

        if (par2ItemStack != null && par2ItemStack.stackSize > this.getInventoryStackLimit())
        {
            par2ItemStack.stackSize = this.getInventoryStackLimit();
        }
    }

    
    public String getInvName()
    {
        return "Special Compressor";
    }

public int getInventoryStackLimit() 
{
	return 64;
}


public boolean isUseableByPlayer(EntityPlayer var1) 
{
	return true;
}


public void openChest() 
{
}

@Override
    public void readFromNBT(NBTTagCompound par1NBTTagCompound)
    {
        super.readFromNBT(par1NBTTagCompound);
        NBTTagList var2 = par1NBTTagCompound.getTagList("Items");
        this.inventory = new ItemStack[this.getSizeInventory()];

        for (int var3 = 0; var3 < var2.tagCount(); ++var3)
        {
            NBTTagCompound var4 = (NBTTagCompound)var2.tagAt(var3);
            byte var5 = var4.getByte("Slot");

            if (var5 >= 0 && var5 < this.inventory.length)
            {
                this.inventory[var5] = ItemStack.loadItemStackFromNBT(var4);
            }
        }
        
        if (par1NBTTagCompound.hasKey("FirstTank")) {
        	
        	FluidStack stack = FluidStack.loadFluidStackFromNBT(par1NBTTagCompound.getCompoundTag("FirstTank"));
        	
        	if(stack != null)
        	{
        		first.setFluid(stack);
        	}
        	
        	
	}
        if (par1NBTTagCompound.hasKey("Second")) {
        	
        	FluidStack fluid = FluidStack.loadFluidStackFromNBT(par1NBTTagCompound.getCompoundTag("Second"));
        	
        	if(fluid != null)
        	{
        		second.setFluid(fluid);
        	}
        	
	}
        progress = par1NBTTagCompound.getInteger("Progress");
        fuel = par1NBTTagCompound.getInteger("Fuels");
        mode = par1NBTTagCompound.getInteger("Mode");
    }

    /**
     * Writes a tile entity to NBT.
     */
@Override
    public void writeToNBT(NBTTagCompound par1NBTTagCompound)
    {
        super.writeToNBT(par1NBTTagCompound);
       
        NBTTagList var2 = new NBTTagList();

        for (int var3 = 0; var3 < this.inventory.length; ++var3)
        {
            if (this.inventory[var3] != null)
            {
                NBTTagCompound var4 = new NBTTagCompound();
                var4.setByte("Slot", (byte)var3);
                this.inventory[var3].writeToNBT(var4);
                var2.appendTag(var4);
            }
        }

        par1NBTTagCompound.setTag("Items", var2);
    	par1NBTTagCompound.setInteger("rotation", facing);
	if (first.getFluid() != null) {
		par1NBTTagCompound.setTag("FirstTank", first.getFluid().writeToNBT(par1NBTTagCompound));
	}
	if (second.getFluid() != null) {
		par1NBTTagCompound.setTag("Second", second.getFluid().writeToNBT(par1NBTTagCompound));
	}
    	par1NBTTagCompound.setInteger("Progress", progress);
    	par1NBTTagCompound.setInteger("Fuels", fuel);
    	par1NBTTagCompound.setInteger("Mode", mode);
    }

public void closeChest() 
{
}

public FluidStack getLiquidID(boolean firsts)
{
	if(firsts)
	{
		return first.getFluid();
	}
	else
	{
		return second.getFluid();
	}
}


public int getTankScaled(int i, boolean firsts) 
{
	if(firsts)
	{
		return first.getFluid() != null ?  ((first.getFluid().amount / (275))) : 0;
	}
	else
	{
		return second.getFluid() != null ? ((second.getFluid().amount / (275))) : 0;
	}
}

public void getInfoData(int key, int value)
{
	switch(key)
	{
		case 0:
			progress = value;
			break;
		case 1:
			fuel = value;
			break;
		case 2:
			mode = value;
			break;
		case 3:
			if (first.getFluid() == null) 
			{
				first.setFluid(new FluidStack(value, 0));
			} 
			else 
			{
				first.getFluid().fluidID = value;
			}
			break;
		case 4:
			if (first.getFluid() == null) 
			{
				first.setFluid(new FluidStack(0, value));
			} 
			else 
			{
				first.getFluid().amount = value;
			}
			break;
		case 5:
			if (second.getFluid() == null) 
			{
				second.setFluid(new FluidStack(value, 0));
			}
			else 
			{
				second.getFluid().fluidID = value;
			}
			break;
		case 6:
			if (second.getFluid() == null) 
			{
				second.setFluid(new FluidStack(0, value));
			} 
			else 
			{
				second.getFluid().amount = value;
			}
			break;
		case 7:
			this.cound = value;

	}
}

public void sendGuiInfoData(ContainerCompressor par1, ICrafting par2)
{
	par2.sendProgressBarUpdate(par1, 0, progress);
	par2.sendProgressBarUpdate(par1, 1, fuel);
	par2.sendProgressBarUpdate(par1, 2, mode);
	par2.sendProgressBarUpdate(par1, 3, first.getFluid() != null ? first.getFluid().fluidID : 0);
	par2.sendProgressBarUpdate(par1, 4, first.getFluid() != null ? first.getFluid().amount : 0);
	par2.sendProgressBarUpdate(par1, 5, second.getFluid() != null ? second.getFluid().fluidID : 0);
	par2.sendProgressBarUpdate(par1, 3, second.getFluid() != null ? second.getFluid().amount : 0);
	par2.sendProgressBarUpdate(par1, 6, cound);
}




public void breaks()
{
	this.inventory[13] = null;
	this.worldObj.playSoundEffect(xCoord, yCoord, zCoord, (String)null, 0, 0);
}



@Override
public int[] getAccessibleSlotsFromSide(int var1) 
{
	if(var1 == 0 || var1 == 1)
	{
		return new int[]{3};
	}
	return new int[]{12};
}



@Override
public boolean canInsertItem(int i, ItemStack itemstack, int j) 
{
	if(j == 0 || j == 1)
	{
		return true;
	}
	return false;
}



@Override
public boolean canExtractItem(int i, ItemStack itemstack, int j) 
{
	if(j == 0 || j == 1)
	{
		return false;
	}
	return true;
}



@Override
public boolean isInvNameLocalized() 
{
	return false;
}



@Override
public boolean isItemValidForSlot(int i, ItemStack itemstack)
{
	return true;
}



@Override
public int fill(ForgeDirection from, FluidStack resource, boolean doFill) 
{

	if(from.ordinal() == ForgeDirection.EAST.ordinal() || from.ordinal() == ForgeDirection.WEST.ordinal())
	{
		if(first.fill(resource, false) > 0)
		{
			return first.fill(resource, doFill);
		}
		return 0;
	}
	if(from.ordinal() == ForgeDirection.NORTH.ordinal() || from.ordinal() == ForgeDirection.SOUTH.ordinal())
	{
		if(second.fill(resource, false) > 0)
		{
			return second.fill(resource, doFill);
		}
		return 0;
	}
	if(first.fill(resource, false) > 0)
	{
		return first.fill(resource, doFill);
	}
	if(second.fill(resource, false) > 0)
	{
		return second.fill(resource, doFill);
	}
	return 0;
}



@Override
public FluidStack drain(ForgeDirection from, FluidStack resource, boolean doDrain) 
{
	return this.drain(from, resource.amount, doDrain);
}



@Override
public FluidStack drain(ForgeDirection from, int maxDrain, boolean doDrain) 
{
	if(from.ordinal() == ForgeDirection.EAST.ordinal() || from.ordinal() == ForgeDirection.WEST.ordinal())
	{
		if(first.drain(maxDrain, false) != null)
		{
			return first.drain(maxDrain, doDrain);
		}
		return null;
	}
	if(from.ordinal() == ForgeDirection.NORTH.ordinal() || from.ordinal() == ForgeDirection.SOUTH.ordinal())
	{
		if(second.drain(maxDrain, false) != null)
		{
			return second.drain(maxDrain, doDrain);
		}
		return null;
	}

	if(first.drain(maxDrain, false) != null)
	{
		return first.drain(maxDrain, doDrain);
	}

	if(second.drain(maxDrain, false) != null)
	{
		return second.drain(maxDrain, doDrain);
	}


	return null;	
}



@Override
public boolean canFill(ForgeDirection from, Fluid fluid) 
{
	return true;
}



@Override
public boolean canDrain(ForgeDirection from, Fluid fluid) 
{
	return true;
}



@Override
public FluidTankInfo[] getTankInfo(ForgeDirection from) 
{
	return new FluidTankInfo[]{first.getInfo(), second.getInfo()};
}



}

 

What could be the problem?

 

Posted

I did that. You find it at the getDiscription Packet

And the Container Sync is are in the functions "getInfoData" and "sendGuiInfoData" which are called from the container.

So that could not be the problem.

another Idea diesieben?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Im trying add to block a hole in center, just a usual block and in center of it on up side, there is should be a hole. I tried to add it via BlockModelBuilder, but its not working. Problem is that it only can change block size outside. I tried it to do with VoxelShape and its working, but its has been on server side and looks like its just changed collision shape, but for client, there is a texture covering this hole. I tried to use: base.renderType("cutout"); and removed some pixels from texture. I thought its should work, but game optimization makes block inside looks transparent. So, only custom model?
    • I Made this modpack myself and When i Open a world with embeddium enabeld no chuncks are loading in and when i have the mod brute force rendering culling eanbled the game will not start     This is the Modlist:   Chef's Delight [Forge] (by redstone3game) Yung Structures Addon for Loot Integrations (by someaddon) Macaw's Paths and Pavings (by sketch_macaw) My Nether's Delight (by soytutta) Client Crafting (by someaddon) Integrated Stronghold (by CraisinLord) Delightful (by brnbrd) Immersive Aircraft [Fabric/Forge] (by Conczin) Mysterious Mountain Lib (by sz0999312) Infinity Buttons (by LarsMans) SuperMartijn642's Core Lib (by SuperMartijn642) Clumps (by Jaredlll08) Embeddium (by FiniteReality) Cosmetic Armor Reworked (by LainMI) Creeper Overhaul (by joosh_7889) Balm (by BlayTheNinth) HT's TreeChop (by hammertater) Fastload (by StockiesLad) ImmediatelyFast (by RaphiMC) Integrated Dungeons and Structures (by CraisinLord) Mobtimizations - Entity Performance Fixes (by Corosus) Handcrafted (by terrariumearth) SuperMartijn642's Config Lib (by SuperMartijn642) Dramatic Doors (by FizzWare) Allurement (by TeamAbnormals) Xaero's World Map (by xaero96) Panda's Extra Details (by ThePandaOliver) Geophilic – Vanilla Biome Overhauls (by bebebea_loste) Auroras (by Verph) Naturalist (by Starfish_Studios) Iron Chests (by ProgWML6) Corpse (by henkelmax) FastSuite (by Shadows_of_Fire) Controlling (by Jaredlll08) Ash API (by Trikzon) Eating Animation [Neo/Forge] (by matyrobbrt) Macaw's Doors (by sketch_macaw) ForgeEndertech (by EnderLanky) Philip's Ruins (by philipmoddev) Resourceful Config (by ThatGravyBoat) ModernFix (by embeddedt) Quark (by Vazkii) Illager Invasion [Forge & Fabric] (by Fuzs) Integrated API (by CraisinLord) Redirector [Modern] (by pOtAto__bOy) Macaw's Fences and Walls (by sketch_macaw) Diagonal Windows [Forge & Fabric] (by Fuzs) Waystones (by BlayTheNinth) [EMF] Entity Model Features [Fabric & Forge] (by Traben) FerriteCore ((Neo)Forge) (by malte0811) CodeChicken Lib 1.8.+ (by covers1624) Macaw's Roofs (by sketch_macaw) Server Country Flags (by khajiitos) Bookshelf (by DarkhaxDev) Comforts (Fabric/Forge/Quilt) (by TheIllusiveC4) Enchantment Descriptions (by DarkhaxDev) Entity Culling Fabric/Forge (by tr7zw) Embeddium++ (by SrRapero720) Embeddium (Rubidium) Extra (by dimadencep) Smooth Boot (Reloaded) (by AbdElAziz333) Dungeons and Taverns (by Nova_Wostra) Placeables (by ItzSkay) CoroUtil (by Corosus) Small Ships [Fabric & Forge] (by talhanation) Trade Cycling (by henkelmax) Better Fps - Render Distance[Forge] (by someaddon) Better Villages - Forge (by jtl_elisa) PandaLib (by ThePandaOliver) Curios API (Forge/NeoForge) (by TheIllusiveC4) Stoneworks [Forge & Fabric] (by Fuzs) Pastel Shaders (by ElocinDev) Integrated Villages (by CraisinLord) More Axolotl Variants API (by AkashiiKun69) Potato Shader (by RRe36) Better Archeology (by Pandarix) Block Runner [Forge & Fabric] (by Fuzs) Cloth Config API (Fabric/Forge/NeoForge) (by shedaniel) Kiwi 🥝 (Neo/Forge) (by Snownee) Macaw's Lights and Lamps (by sketch_macaw) Loot Integrations (by someaddon) Farmers Structures (by BlackAuresArt) Wilderness (by ketok) Corpse x Curios API Compat (by Project8gbDeRam) Friends&Foes (Forge/NeoForge) (Copper Golem,Glare,Crab,Moobloom,Iceologer,Rascal,Tuff Golem,Wildfire,Illusioner) (by Faboslav) More Mob Variants (by nyuppo) Better Than Mending (by legobmw99) Remove Reloading Screen (by dimadencep) Simply Swords [Fabric & Forge] (by sweenuss) Better Brightness Slider (by LaidBackSloth) Krypton Reforged (by Txni) AppleSkin (by squeek502) Supplementaries Squared (by plantspookable) Horse Expert (by Fuzs) YUNG's Menu Tweaks (Forge) (by YUNGNICKYOUNG) Pet Cemetery (by TeamAbnormals) Leaky - Item Lag Fix[Forge/Fabric] (by someaddon) Tectonic (by Apollo) Saturn (by AbdElAziz333) Searchables (by Jaredlll08) Inventory HUD+ (by dmitrylovin) Moonlight Lib (by MehVahdJukaar) Explorify – Dungeons & Structures (by bebebea_loste) Placebo (by Shadows_of_Fire) Overflowing Bars [Forge & Fabric] (by Fuzs) Citadel (by sbom_xela) Alex's Mobs - Naturalist Compat (by Kanadeyoru) Forge CIT (by tfarecnim) Create (by simibubi) Starlight (Forge) (by Spottedleaf) [ETF] Entity Texture Features - [Fabric & Forge] (by Traben) Advanced Chimneys (by EnderLanky) Corn Delight[Forge] (by sz0999312) Trials Chambers [1.20.1 Backport] (by Jusey1z) MVS - Moog's Voyager Structures (by finndog_123) Macaw's Paintings (by sketch_macaw) Alternate Current (by SpaceWalkerRS) Hopo Better Ruined Portals (Fabric/Forge/NeoForge) (by hoponopono) Alex's Delight (by Baisylia) Macaw's Biomes O' Plenty (by Samlegamer_) Resourceful Lib (by ThatGravyBoat) FindMe (by Buuz135) Macaw's Bridges (by sketch_macaw) YUNG's Better Witch Huts (Forge) (by YUNGNICKYOUNG) MNS - Moog's Nether Structures (by finndog_123) Mowzie's Mobs (by bobmowzie) FastWorkbench (by Shadows_of_Fire) Transparent (by Trikzon) Artifacts (by ochotonida) Passable Foliage 🌳 (Neo/Forge) (by Snownee) Supplementaries (by MehVahdJukaar) Atmospheric (by TeamAbnormals) Alex's Caves (by sbom_xela) Alex's Caves Delight (by FixerLink1) Ocean's Delight (by scouter567) Brute force Rendering Culling (by RogoShum) fix GPU memory leak[Forge/Fabric] (by someaddon) Burnt: Better Vanilla Fire (by pxlbnk) YDM's Weapon Master (by YourDailyModderx) Curios Compat Layer for Accessories (by Blodhgarm) MES - Moog's End Structures (by finndog_123) Pale Garden and Creaking (by MinoBanana) YUNG's Better Jungle Temples (Forge) (by YUNGNICKYOUNG) AddonsLib (by Samlegamer_) Athena (by CodexAdrian) MakeUp - Ultra Fast | Shaders (by XavierFST) Xaero's Minimap (by xaero96) Macaw's Trapdoors (by sketch_macaw) Translocators 1.8.+ (by covers1624) Additional Structures (by XxRexRaptorxX) AI Improvements (by QueenOfMissiles) Autochef's Delight (by Snownee) Iron Furnaces (by XenoMustache) Iris/Oculus & GeckoLib Compat (by ElocinDev) Connectivity (by someaddon) Easy Magic [Forge & Fabric] (by Fuzs) Blueprint (by TeamAbnormals) VillagersPlus (FORGE) (by finallion_13) Panda's Falling Tree's (by ThePandaOliver) Xaero's Minimap & World Map - Waystones Compatibility [Forge] (by ArcaneAlloy) ServerCore (by Wesley8081) MrCrayfish's Furniture Mod: Refurbished (by MrCrayfish) Just Enough Items (JEI) (by mezz) Farmer's Delight (by vectorwing) Old fisherman swamp house (by SuperWarioModTeam) YUNG's Better Nether Fortresses (Forge) (by YUNGNICKYOUNG) Lithostitched (by Apollo) FastFurnace (by Shadows_of_Fire) DrDestens MCShaders (by DrDesten) Server Performance - Smooth Chunk Save[Forge/Fabric] (by someaddon) Noisium (by Steveplays28) Puzzles Lib [Forge & Fabric] (by Fuzs) YUNG's Bridges (Forge) (by YUNGNICKYOUNG) Alex's Mobs (by sbom_xela) Regions Unexplored (forge/fabric) (by UHQ_GAMES) Architectury API (by shedaniel) Radium Reforged (by Asek3) Separated Leaves (by LarsMans) CullLessLeaves Reforged (Unofficial) (by ccr4ft3r) Just Enough Effect Descriptions (JEED) (by MehVahdJukaar) FastBoot (by dnlayu) Framework (by MrCrayfish) Chipped (by terrariumearth) MSS - Moog's Soaring Structures (by finndog_123) GeckoLib (by Gecko) CB Multipart (by covers1624) GlitchCore (by TheAdubbz) Realm RPG: Fallen Adventurers (by nocubeyt) Zume (by Nolij) Library Ferret - Forge (by jtl_elisa) Recipe Essentials[Forge/Fabric] (by someaddon) Macaw's Stairs (by sketch_macaw) Accessories (by Blodhgarm) What Are They Up To (Watut) (by Corosus) GroovyModLoader (GML) (by matyrobbrt) Fruits Delight (by lcy0x1) Just Enough Breeding (JEBr) (by Christofmeg) Farmer's Respite (by lumpazl) YUNG's API (Forge) (by YUNGNICKYOUNG) Underground Villages (by Mrbysco) Easy Anvils [Forge & Fabric] (by Fuzs) Cupboard (by someaddon) Diagonal Walls (by Fuzs) Large Ore Deposits (by EnderLanky) More Axolotl Variants Mod (by AkashiiKun69) Zeta (by Vazkii) TerraBlender (Forge) (by TheAdubbz) Biomes O' Plenty (by Forstride) Bocchium (by pOtAto__bOy) FramedBlocks (by XFactHD) Patchouli (by Vazkii) Quark Delight (by nocubeyt) Just Enough Resources (JER) (by way2muchnoise) Amendments (by plantspookable) Simple Hats (by fonnymunkey) Oculus (by Asek3) OpenBlocks Elevator (by vsngarcia) YUNG's Better Mineshafts (Forge) (by YUNGNICKYOUNG) Skin Layers 3D (Fabric/Forge) (by tr7zw) Mouse Tweaks (by YaLTeR) YUNG's Extras (Forge) (by YUNGNICKYOUNG)
    • After removing shieldexpansion it wont let me join the server because it's included in the server's modpack. is there a way to bypass that?  
    • Getting this, been trying to comb thru but cant seem to find the error... [13:11:35] [main/INFO]: Loading 169 mods:     - ad_astra 1.15.19     - ae2 15.3.3     - aether 1.20.1-1.5.2-neoforge         |-- cumulus_menus 1.20.1-1.0.1-neoforge         \-- nitrogen_internals 1.20.1-1.0.12-neoforge     - aiimprovements 0.5.2     - alexsmobs 1.22.9     - almostunified 1.20.1-0.9.4     - appleskin 2.5.1+mc1.20.1     - architectury 9.2.14     - athena 3.1.2     - bellsandwhistles 0.4.3-1.20.x     - betterchunkloading 1.20.1-5.3     - betterdeserttemples 1.20-Forge-3.0.3     - betterdungeons 1.20-Forge-4.0.4     - betterendisland 1.20-Forge-2.0.6     - betterfortresses 1.20-Forge-2.0.6     - betterjungletemples 1.20-Forge-2.0.5     - bettermineshafts 1.20-Forge-4.0.4     - betteroceanmonuments 1.20-Forge-3.0.4     - betterstrongholds 1.20-Forge-4.0.3     - bettervillage 3.2.0     - betterwitchhuts 1.20-Forge-3.0.3     - bookshelf 20.2.13     - botanypots 13.0.40     - botarium 2.3.4     - canary 0.3.3     - carryon 2.1.2.7     - cgm 1.4.18     - chipped 3.0.7     - chunkloaders 1.2.8a     - citadel 2.6.1     - cofh_core 11.0.2     - comforts 6.4.0+1.20.1         \-- spectrelib 0.13.15+1.20.1     - copycats 2.2.0+mc.1.20.1-forge     - corpse 1.20.1-1.0.20     - create 0.5.1.j         \-- flywheel 0.6.11-13     - create_better_motors 1.1.0     - create_bic_bit 0.0.86     - create_central_kitchen 1.3.12         \-- create_dragon_lib 1.4.3     - create_confectionery 1.1.0     - create_connected 0.9.4-mc1.20.1     - create_copper_and_zinc 1.6.0     - create_crush_everything 1.0.2     - create_dd 0.1b.Release-Early-Dev     - create_enchantment_industry 1.2.9.d     - create_eureka 1.0.0+forge-1.20.1     - create_extra_casing 0.0.2     - create_factory 0.4b-1.20.1     - create_ltab_f 2.5.0     - create_mechanical_extruder 1.20.1-1.6.3.j-55     - create_new_age 1.1.2     - create_pillagers_arise 116.26.     - create_power_loader 1.5.0-mc1.20.1     - create_questing 1.0.0     - create_sa 2.0.8     - create_ultimate_factory 1.9.0     - createaddoncompatibility 0.2.2b     - createbigcannons 5.8.2         \-- ritchiesprojectilelib 2.0.0-dev+mc.1.20.1-forge-build.182     - createcasing 1.20.1-1.6.2-fix1     - createdieselgenerators 1.20.1-1.2i     - createloveandwar 0.4-1.20.1     - createmobeggs 2.0.1     - createoreexcavation 1.5.3     - createutilities 0.3.0+1.20.1     - crittersandcompanions 2.2.2     - crystal_clear 2.1-Beta     - cupboard 1.20.1-2.7     - curios 5.11.1+1.20.1     - diagonalfences 8.1.5         \-- diagonalblocks 8.0.6     - domum_ornamentum 1.20.1-1.0.284-snapshot     - duckling 3.0.0     - dungeons_arise 2.1.58-1.20.x     - dungeons_arise_seven_seas 1.0.2     - extendedgears 2.1.1-1.20.1-0.5.1.f-forge     - fallingleaves 2.1.0     - fallingtree 4.3.4     - farmersdelight 1.20.1-1.2.7     - fastasyncworldsave 1.20.1-2.3     - ferritecore 6.0.1     - flansmod 0.4         \-- flansphysics 0.4     - forge 47.3.0     - framedblocks 9.3.1     - framework 0.7.12     - ftblibrary 2001.2.9     - ftbquests 2001.4.11     - ftbteams 2001.3.1     - ftbxmodcompat 2.1.2     - fusion 1.2.4     - garnished 2.0.7     - geckolib 4.7     - goblintraders 1.9.3     - gpumemleakfix 1.20.1-1.8     - handcrafted 3.0.6     - interiors 0.5.6     - irisflw 1.1.2     - jade 11.12.3+forge     - jei 15.20.0.106     - kitchen_grow 0.1-1.20.1     - kotlinforforge 4.11.0     - leaky 1.20.1-2.1     - libraryferret 4.0.0     - lmft 1.0.4+1.20.1     - minecraft 1.20.1     - missions 0.4.2     - modernfix 5.20.2+mc1.20.1         \-- mixinextras 0.4.1     - moderntrainparts 0.1.7-forge-mc1.20.1-cr0.5.1.f     - molten_vents 2.0.9     - moonlight 1.20-2.13.62     - moped 1.0.0     - mr_warp_portals 1.4.0     - necronomicon 1.6.0     - numismatics 1.0.7+forge-mc1.20.1     - oculus 1.8.0     - puzzleslib 8.1.25         \-- puzzlesaccessapi 8.0.7     - quark 4.0-460     - railways 1.6.7+forge-mc1.20.1     - rechiseled 1.1.6     - rechiseledcreate 1.0.2     - resourcefulconfig 2.1.2     - resourcefullib 2.1.29     - ribbits 1.20.1-Forge-3.0.4     - rightclickharvest 3.2.3+1.20.1-forge     - simpleclouds 0.6.3+1.20.1-forge         \-- crackerslib 1.20.1-0.4.4     - skinlayers3d 1.7.4     - smoothchunk 1.20.1-4.0     - sophisticatedbackpacks 3.23.4.1196     - sophisticatedcore 1.2.9.867     - storagedrawers 12.9.13     - supermartijn642configlib 1.1.8     - supermartijn642corelib 1.1.18     - supplementaries 1.20-3.1.13         \-- mixinsquared 0.1.1     - tectonic 2.4.1     - terrablender 3.0.1.7     - terralith 2.5.4     - tfmg 0.9.3-1.20.1     - thermal_cultivation 11.0.1     - thermal_dynamics 11.0.1     - thermal_expansion 11.0.1     - thermal_foundation 11.0.6         \-- thermal 11.0.6     - thermal_innovation 11.0.1     - thermal_integration 11.0.1     - torchmaster 20.1.9     - trackwork 1.1.1b     - trashcans 1.0.18b     - travelersbackpack 9.1.16     - twilightforest 4.3.2508     - valkyrienskies 2.3.0-beta.5         \-- cloth_config 11.1.106     - vinery 1.4.38     - vs_clockwork 1.20.1-0.1.16-forge-b3b22e39fe     - vs_eureka 1.5.1-beta.3     - worldedit 7.2.15+6463-5ca4dff     - xaerominimap 25.0.0     - xaeroworldmap 1.39.2     - yungsapi 1.20-Forge-4.0.6     - yungsbridges 1.20-Forge-4.0.3     - yungsextras 1.20-Forge-4.0.3     - zeta 1.0-24 [13:11:35] [main/WARN]: Reference map 'create_eureka-common-refmap.json' for create_eureka-common.mixins.json could not be read. If this is a development environment you can ignore this message [13:11:35] [main/WARN]: Reference map 'eureka-1201-forge-refmap.json' for vs_eureka.mixins.json could not be read. If this is a development environment you can ignore this message [13:11:35] [main/WARN]: Reference map 'createmechanicalextruder.refmap.json' for create_mechanical_extruder.mixins.json could not be read. If this is a development environment you can ignore this message [13:11:35] [main/WARN]: Reference map 'mixins.trackwork.refmap.json' for trackwork.mixins.json could not be read. If this is a development environment you can ignore this message [13:11:35] [main/WARN]: Reference map 'tfmg.refmap.json' for tfmg.mixins.json could not be read. If this is a development environment you can ignore this message [13:11:35] [main/WARN]: Reference map 'Create_The_Kitchen_Must_Grow.refmap.json' for kitchen_grow.mixins.json could not be read. If this is a development environment you can ignore this message [13:11:36] [main/WARN]: Error loading class: mekanism/client/render/entity/RenderFlame (java.lang.ClassNotFoundException: mekanism.client.render.entity.RenderFlame) [13:11:36] [main/WARN]: Error loading class: mekanism/client/render/armor/MekaSuitArmor (java.lang.ClassNotFoundException: mekanism.client.render.armor.MekaSuitArmor) [13:11:36] [main/WARN]: Error loading class: xyz/przemyk/simpleplanes/upgrades/shooter/ShooterUpgrade (java.lang.ClassNotFoundException: xyz.przemyk.simpleplanes.upgrades.shooter.ShooterUpgrade) [13:11:36] [main/WARN]: @Mixin target xyz.przemyk.simpleplanes.upgrades.shooter.ShooterUpgrade was not found cgm.mixins.json:common.simpleplanes.ShooterUpgradeMixin [13:11:36] [main/WARN]: Error loading class: com/jamieswhiteshirt/reachentityattributes/ReachEntityAttributes (java.lang.ClassNotFoundException: com.jamieswhiteshirt.reachentityattributes.ReachEntityAttributes) [13:11:36] [main/WARN]: Error loading class: com/sonicether/soundphysics/SoundPhysics (java.lang.ClassNotFoundException: com.sonicether.soundphysics.SoundPhysics) [13:11:36] [main/WARN]: Error loading class: blusunrize/immersiveengineering/common/gui/BlockEntityInventory (java.lang.ClassNotFoundException: blusunrize.immersiveengineering.common.gui.BlockEntityInventory) [13:11:36] [main/WARN]: Error loading class: net/dries007/tfc/world/TFCChunkGenerator (java.lang.ClassNotFoundException: net.dries007.tfc.world.TFCChunkGenerator) [13:11:36] [main/WARN]: Error loading class: cofh/core/block/entity/TileCoFH (java.lang.ClassNotFoundException: cofh.core.block.entity.TileCoFH) [13:11:36] [main/WARN]: Error loading class: li/cil/tis3d/common/entity/InfraredPacketEntity (java.lang.ClassNotFoundException: li.cil.tis3d.common.entity.InfraredPacketEntity) [13:11:36] [main/WARN]: Error loading class: me/desht/modularrouters/container/RouterMenu (java.lang.ClassNotFoundException: me.desht.modularrouters.container.RouterMenu) [13:11:36] [main/WARN]: Error loading class: me/jellysquid/mods/sodium/client/render/chunk/RenderSectionManager (java.lang.ClassNotFoundException: me.jellysquid.mods.sodium.client.render.chunk.RenderSectionManager) [13:11:36] [main/WARN]: @Mixin target me.jellysquid.mods.sodium.client.render.chunk.RenderSectionManager was not found valkyrienskies-forge.mixins.json:compat.sodium.MixinRenderSectionManager [13:11:36] [main/WARN]: Error loading class: li/cil/tis3d/client/renderer/block/entity/CasingBlockEntityRenderer (java.lang.ClassNotFoundException: li.cil.tis3d.client.renderer.block.entity.CasingBlockEntityRenderer) [13:11:36] [main/WARN]: Error loading class: li/cil/tis3d/client/renderer/RenderContextImpl (java.lang.ClassNotFoundException: li.cil.tis3d.client.renderer.RenderContextImpl) [13:11:37] [main/WARN]: Error loading class: me/jellysquid/mods/lithium/common/ai/pathing/PathNodeDefaults (java.lang.ClassNotFoundException: me.jellysquid.mods.lithium.common.ai.pathing.PathNodeDefaults) [13:11:37] [main/WARN]: Error loading class: noobanidus/mods/lootr/config/ConfigManager (java.lang.ClassNotFoundException: noobanidus.mods.lootr.config.ConfigManager) [13:11:37] [main/WARN]: Error loading class: me/jellysquid/mods/sodium/client/render/chunk/compile/pipeline/FluidRenderer (java.lang.ClassNotFoundException: me.jellysquid.mods.sodium.client.render.chunk.compile.pipeline.FluidRenderer) [13:11:37] [main/WARN]: Error loading class: net/raphimc/immediatelyfast/feature/map_atlas_generation/MapAtlasTexture (java.lang.ClassNotFoundException: net.raphimc.immediatelyfast.feature.map_atlas_generation.MapAtlasTexture) [13:11:37] [main/WARN]: Error loading class: dan200/computercraft/shared/integration/MoreRedIntegration (java.lang.ClassNotFoundException: dan200.computercraft.shared.integration.MoreRedIntegration) [13:11:37] [main/WARN]: @Mixin target dan200.computercraft.shared.integration.MoreRedIntegration was not found create_central_kitchen.mixins.json:common.computercraft.MoreRedIntegrationMixin [13:11:37] [main/WARN]: Error loading class: com/sammy/minersdelight/content/block/copper_pot/CopperPotBlockEntity (java.lang.ClassNotFoundException: com.sammy.minersdelight.content.block.copper_pot.CopperPotBlockEntity) [13:11:37] [main/WARN]: @Mixin target com.sammy.minersdelight.content.block.copper_pot.CopperPotBlockEntity was not found create_central_kitchen.mixins.json:common.minersdelight.CopperPotBlockEntityMixin [13:11:37] [main/WARN]: Error loading class: com/sammy/minersdelight/content/block/sticky_basket/StickyBasketBlockEntity (java.lang.ClassNotFoundException: com.sammy.minersdelight.content.block.sticky_basket.StickyBasketBlockEntity) [13:11:37] [main/WARN]: @Mixin target com.sammy.minersdelight.content.block.sticky_basket.StickyBasketBlockEntity was not found create_central_kitchen.mixins.json:common.minersdelight.StickyBasketBlockEntityAccessor [13:11:37] [main/WARN]: Error loading class: com/sammy/minersdelight/content/block/sticky_basket/StickyBasketBlockEntity (java.lang.ClassNotFoundException: com.sammy.minersdelight.content.block.sticky_basket.StickyBasketBlockEntity) [13:11:37] [main/WARN]: @Mixin target com.sammy.minersdelight.content.block.sticky_basket.StickyBasketBlockEntity was not found create_central_kitchen.mixins.json:common.minersdelight.StickyBasketBlockEntityMixin [13:11:37] [main/WARN]: Error loading class: net/orcinus/overweightfarming/blocks/CropFullBlock (java.lang.ClassNotFoundException: net.orcinus.overweightfarming.blocks.CropFullBlock) [13:11:37] [main/WARN]: @Mixin target net.orcinus.overweightfarming.blocks.CropFullBlock was not found create_central_kitchen.mixins.json:common.overweightfarming.CropFullBlockMixin [13:11:37] [main/ERROR]: valkyrienskies-common.mixins.json:feature.container_distance_check.MixinContainer: Interface mixin contains a non-public method! Found includeShipsInDistanceCheck(Lnet/minecraft/world/entity/player/Player;DDD)D in valkyrienskies-common.mixins.json:feature.container_distance_check.MixinContainer org.spongepowered.asm.mixin.transformer.throwables.InvalidInterfaceMixinException: Interface mixin contains a non-public method! Found includeShipsInDistanceCheck(Lnet/minecraft/world/entity/player/Player;DDD)D in valkyrienskies-common.mixins.json:feature.container_distance_check.MixinContainer     at org.spongepowered.asm.mixin.transformer.MixinPreProcessorInterface.prepareMethod(MixinPreProcessorInterface.java:65) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinPreProcessorStandard.prepare(MixinPreProcessorStandard.java:187) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinInfo$State.validate(MixinInfo.java:322) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinInfo.validate(MixinInfo.java:913) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinConfig.postInitialise(MixinConfig.java:801) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinProcessor.prepareConfigs(MixinProcessor.java:567) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinProcessor.select(MixinProcessor.java:462) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinProcessor.checkSelect(MixinProcessor.java:438) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:290) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4]     at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:156) ~[modlauncher-10.0.9.jar:10.0.9+10.0.9+main.dcd20f30]     at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:88) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:50) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:113) ~[securejarhandler-2.1.10.jar:?]     at cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219) ~[securejarhandler-2.1.10.jar:?]     at cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229) ~[securejarhandler-2.1.10.jar:?]     at cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219) ~[securejarhandler-2.1.10.jar:?]     at java.lang.ClassLoader.loadClass(ClassLoader.java:637) ~[?:?]     at java.lang.Class.forName(Class.java:545) ~[?:?]     at net.minecraftforge.fml.earlydisplay.DisplayWindow.lambda$updateModuleReads$14(DisplayWindow.java:601) ~[fmlearlydisplay-1.20.1-47.3.0.jar:1.0]     at java.util.Optional.map(Optional.java:260) ~[?:?]     at net.minecraftforge.fml.earlydisplay.DisplayWindow.updateModuleReads(DisplayWindow.java:601) ~[fmlearlydisplay-1.20.1-47.3.0.jar:1.0]     at net.minecraftforge.fml.loading.ImmediateWindowHandler.acceptGameLayer(ImmediateWindowHandler.java:71) ~[fmlloader-1.20.1-47.3.0.jar:1.0]     at net.minecraftforge.fml.loading.FMLLoader.beforeStart(FMLLoader.java:207) ~[fmlloader-1.20.1-47.3.0.jar:1.0]     at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.launchService(CommonLaunchHandler.java:92) ~[fmlloader-1.20.1-47.3.0.jar:?]     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.Launcher.run(Launcher.java:108) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.Launcher.main(Launcher.java:78) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?] [13:11:37] [main/INFO]: Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.4.1). [13:11:39] [pool-4-thread-1/INFO]: ModernFix reached bootstrap stage (11.29 s after launch) [13:11:39] [pool-4-thread-1/WARN]: @Final field delegatesByName:Ljava/util/Map; in modernfix-forge.mixins.json:perf.forge_registry_alloc.ForgeRegistryMixin should be final [13:11:39] [pool-4-thread-1/WARN]: @Final field delegatesByValue:Ljava/util/Map; in modernfix-forge.mixins.json:perf.forge_registry_alloc.ForgeRegistryMixin should be final [13:11:39] [pool-4-thread-1/INFO]: Injecting BlockStateBase cache population hook into getNeighborPathNodeType from com.abdelaziz.canary.mixin.ai.pathing.BlockStateBaseMixin [13:11:39] [pool-4-thread-1/INFO]: Injecting BlockStateBase cache population hook into getPathNodeType from com.abdelaziz.canary.mixin.ai.pathing.BlockStateBaseMixin [13:11:39] [pool-4-thread-1/WARN]: @Inject(@At("INVOKE")) Shift.BY=1 on crittersandcompanions.mixins.json:LivingEntityMixin::handler$cjk000$onDie exceeds the maximum allowed value: 0. Increase the value of maxShiftBy to suppress this warning. [13:11:40] [pool-4-thread-1/INFO]: Vanilla bootstrap took 1231 milliseconds [13:11:42] [pool-4-thread-1/WARN]: Static binding violation: PRIVATE @Overwrite method m_47505_ in modernfix-common.mixins.json:perf.remove_biome_temperature_cache.BiomeMixin cannot reduce visibiliy of PUBLIC target method, visibility will be upgraded. [13:11:42] [Render thread/WARN]: Error loading class: net/caffeinemc/mods/sodium/api/memory/MemoryIntrinsics (java.lang.ClassNotFoundException: net.caffeinemc.mods.sodium.api.memory.MemoryIntrinsics)  
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.