Jump to content

[1.7.10] Opening Custom Player Inventory


loawkise

Recommended Posts

I am trying to make my own custom player inventory but when I go to open it I a null pointer in my packet class at:

 

player.openGui(Backpack.instance, 0, player.worldObj, (int) player.posX, (int) player.posY, (int) player.posZ);

 

I know my packet is working fine because I am able to set the player's health etc, so I am not sure why I can't open my gui.

 

Packet

 

package com.backpack.packets;

import com.backpack.main.Backpack;

import io.netty.buffer.ByteBuf;
import net.minecraft.entity.player.EntityPlayer;
import cpw.mods.fml.common.network.simpleimpl.IMessage;
import cpw.mods.fml.common.network.simpleimpl.IMessageHandler;
import cpw.mods.fml.common.network.simpleimpl.MessageContext;

public class OpenPlayerInventory implements IMessage
{   
public OpenPlayerInventory()
{

}

public OpenPlayerInventory(int entityID, int level)
{

    }

@Override
public void fromBytes(ByteBuf buf)
{

    }

@Override
public void toBytes(ByteBuf buf)
{

    }

public static class Handler implements IMessageHandler<OpenPlayerInventory, IMessage>
{
	@Override
	public IMessage onMessage(OpenPlayerInventory message, MessageContext ctx)
	{
		EntityPlayer player = null;

		player = ctx.getServerHandler().playerEntity;

		if(player != null)
		{
			player.openGui(Backpack.instance, 0, player.worldObj, (int) player.posX, (int) player.posY, (int) player.posZ);
		}

		return null; 
        }
    }
}

 

 

Player Inventory

 

package com.backpack.inventories;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;

public class InventoryPlayerSurvival implements IInventory
{
private final String name = "Player Survival Inventory";
private final String tagName = "PSI";

public static final int INV_SIZE = 5;

private ItemStack[] inventory = new ItemStack[iNV_SIZE];

public InventoryPlayerSurvival() 
{

}

@Override
public int getSizeInventory()
{
	return inventory.length;
}

@Override
public ItemStack getStackInSlot(int slot) 
{
	return inventory[slot];
}

@Override
public ItemStack decrStackSize(int slot, int amount) 
{
	ItemStack stack = getStackInSlot(slot);

	if(stack != null)
	{
		if(stack.stackSize > amount)
		{
			stack = stack.splitStack(amount);
		}
		else
		{
			setInventorySlotContents(slot, null);
		}
	}

	return null;
}

@Override
public ItemStack getStackInSlotOnClosing(int slot) 
{
	ItemStack stack = getStackInSlot(slot);
	setInventorySlotContents(slot, null);

	return null;
}

@Override
public void setInventorySlotContents(int slot, ItemStack itemstack) 
{
	this.inventory[slot] = itemstack;

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

@Override
public String getInventoryName() 
{
	return name;
}

@Override
public boolean hasCustomInventoryName() 
{
	return name.length() > 0;
}

@Override
public int getInventoryStackLimit() 
{
	return 1;
}

@Override
public void markDirty() 
{

}

@Override
public boolean isUseableByPlayer(EntityPlayer player) 
{
	return true;
}

@Override
public void openInventory() 
{

}

@Override
public void closeInventory() 
{

}

@Override
public boolean isItemValidForSlot(int p_94041_1_, ItemStack p_94041_2_) 
{
	return true;
}

public void writeToNBT(NBTTagCompound compound)
{
	NBTTagList items = new NBTTagList();

	for (int i = 0; i < getSizeInventory(); ++i)
	{
		if (getStackInSlot(i) != null)
		{
			NBTTagCompound item = new NBTTagCompound();
			item.setByte("Slot", (byte) i);
			getStackInSlot(i).writeToNBT(item);
			items.appendTag(item);
		}
	}

	compound.setTag(tagName, items);
}

public void readFromNBT(NBTTagCompound compound)
{
	NBTTagList items = compound.getTagList(tagName, 0);

	for (int i = 0; i < items.tagCount(); ++i)
	{
		NBTTagCompound item = (NBTTagCompound) items.getCompoundTagAt(i);
		byte slot = item.getByte("Slot");

		if (slot >= 0 && slot < getSizeInventory()) inventory[slot] = ItemStack.loadItemStackFromNBT(item);
	}
}
}

 

 

Container

 

package com.backpack.gui;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;

import com.backpack.inventories.InventoryPlayerSurvival;
import com.backpack.items.ItemBackpack;
import com.backpack.slots.SlotBackpack;

public class ContainerPlayerSurvival extends Container
{
private static final int ARMOR_START = InventoryPlayerSurvival.INV_SIZE, ARMOR_END = ARMOR_START+3,
		INV_START = ARMOR_END+1, INV_END = INV_START+26, HOTBAR_START = INV_END+1,
		HOTBAR_END = HOTBAR_START+8;

public ContainerPlayerSurvival(EntityPlayer player, InventoryPlayer inventoryPlayer, InventoryPlayerSurvival inventoryCustom)
{
	addSlotToContainer(new SlotBackpack(inventoryCustom, 0, 80, );
	addSlotToContainer(new SlotBackpack(inventoryCustom, 1, 100, 26));
	addSlotToContainer(new SlotBackpack(inventoryCustom, 2, 100, 44));
	addSlotToContainer(new SlotBackpack(inventoryCustom, 3, 100, 62));
	addSlotToContainer(new SlotBackpack(inventoryCustom, 4, 100, 80));

	for (int i = 0; i < 3; i ++)
	{
		for (int j = 0; j < 9; j ++)
		{
			this.addSlotToContainer(new Slot(inventoryPlayer, j + i * 9 + 9, 8 + j * 18, 84 + i * 18));
		}
	}

	for (int i = 0; i < 9; i ++)
	{
		this.addSlotToContainer(new Slot(inventoryPlayer, i, 8 + i * 18, 142));
	}
}

@Override
public boolean canInteractWith(EntityPlayer player)
{
	return true;
}

@Override
public ItemStack transferStackInSlot(EntityPlayer player, int ohwaititis)
{
	ItemStack itemstack = null;
	Slot slot = (Slot) inventorySlots.get(ohwaititis);

	if(slot != null && slot.getHasStack())
	{
		ItemStack itemstack1 = slot.getStack();
		itemstack = itemstack1.copy();

		if(ohwaititis < INV_START)
		{
			if(!mergeItemStack(itemstack1, INV_START, HOTBAR_END + 1, true))
			{
				return null;
			}

			slot.onSlotChange(itemstack1, itemstack);
		}
		else
		{
			if(itemstack1.getItem() instanceof ItemBackpack)
			{
				if (!this.mergeItemStack(itemstack1, 0, InventoryPlayerSurvival.INV_SIZE, false))
				{
					return null;
				}
			}
			else if (ohwaititis >= INV_START && ohwaititis < HOTBAR_START)
			{
				if (!this.mergeItemStack(itemstack1, HOTBAR_START, HOTBAR_START + 1, false))
				{
					return null;
				}
			}
			else if (ohwaititis >= HOTBAR_START && ohwaititis < HOTBAR_END + 1)
			{
				if (!this.mergeItemStack(itemstack1, INV_START, INV_END + 1, false))
				{
					return null;
				}
			}
		}

		if (itemstack1.stackSize == 0)
		{
			slot.putStack((ItemStack) null);
		}
		else
		{
			slot.onSlotChanged();
		}

		if (itemstack1.stackSize == itemstack.stackSize)
		{
			return null;
		}

		slot.onPickupFromSlot(player, itemstack1);
	}

	return itemstack;
}
}

 

 

GUI Handler

 

package com.backpack.gui;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;

import com.backpack.properties.ExtendedPlayer;

import cpw.mods.fml.common.network.IGuiHandler;

public class GuiHandler implements IGuiHandler
{
@Override
public Object getServerGuiElement(int guiId, EntityPlayer player, World world, int x, int y, int z)
{
	if (guiId == 0) {
		return new ContainerPlayerSurvival(player, player.inventory, ExtendedPlayer.get(player).inventory);
	} else {
		return null;
	}
}
    
@Override
public Object getClientGuiElement(int guiId, EntityPlayer player, World world, int x, int y, int z)
{
	if (guiId == 0) {
		return new ContainerPlayerSurvival(player, player.inventory, ExtendedPlayer.get(player).inventory);
	} else {
		return null;
	}
}
}

 

 

GUI

 

package com.backpack.gui;

import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.renderer.OpenGlHelper;
import net.minecraft.client.renderer.RenderHelper;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.util.ResourceLocation;

import org.lwjgl.opengl.GL11;
import org.lwjgl.opengl.GL12;

import com.backpack.inventories.InventoryPlayerSurvival;
import com.backpack.references.References;

public class GuiPlayerSurvival extends GuiContainer
{
private float xSize_lo;

private float ySize_lo;

private static final ResourceLocation iconLocation = new ResourceLocation(References.MODID + ":textures/gui/main.png");

private final InventoryPlayerSurvival inventory;

public GuiPlayerSurvival(EntityPlayer player, InventoryPlayer inventoryPlayer, InventoryPlayerSurvival inventoryCustom)
{
	super(new ContainerPlayerSurvival(player, inventoryPlayer, inventoryCustom));
	this.inventory = inventoryCustom;
	// if you need the player for something later on, store it in a local variable here as well
}

public void drawScreen(int mouseX, int mouseY, float f)
{
	super.drawScreen(mouseX, mouseY, f);
	xSize_lo = mouseX;
	ySize_lo = mouseY;
}

protected void drawGuiContainerBackgroundLayer(float f, int mouseX, int mouseY)
{
	GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
	mc.getTextureManager().bindTexture(iconLocation);
	drawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize);
	drawPlayerModel(guiLeft + 51, guiTop + 75, 30, guiLeft + 51 - xSize_lo, guiTop + 25 - ySize_lo, mc.thePlayer);
}

public static void drawPlayerModel(int x, int y, int scale, float yaw, float pitch, EntityLivingBase entity)
{
	GL11.glEnable(GL11.GL_COLOR_MATERIAL);
	GL11.glPushMatrix();
	GL11.glTranslatef(x, y, 50.0F);
	GL11.glScalef(-scale, scale, scale);
	GL11.glRotatef(180.0F, 0.0F, 0.0F, 1.0F);
	float f2 = entity.renderYawOffset;
	float f3 = entity.rotationYaw;
	float f4 = entity.rotationPitch;
	float f5 = entity.prevRotationYawHead;
	float f6 = entity.rotationYawHead;
	GL11.glRotatef(135.0F, 0.0F, 1.0F, 0.0F);
	RenderHelper.enableStandardItemLighting();
	GL11.glRotatef(-135.0F, 0.0F, 1.0F, 0.0F);
	GL11.glRotatef(-((float) Math.atan(pitch / 40.0F)) * 20.0F, 1.0F, 0.0F, 0.0F);
	entity.renderYawOffset = (float) Math.atan(yaw / 40.0F) * 20.0F;
	entity.rotationYaw = (float) Math.atan(yaw / 40.0F) * 40.0F;
	entity.rotationPitch = -((float) Math.atan(pitch / 40.0F)) * 20.0F;
	entity.rotationYawHead = entity.rotationYaw;
	entity.prevRotationYawHead = entity.rotationYaw;
	GL11.glTranslatef(0.0F, entity.yOffset, 0.0F);
	RenderManager.instance.playerViewY = 180.0F;
	RenderManager.instance.renderEntityWithPosYaw(entity, 0.0D, 0.0D, 0.0D, 0.0F, 1.0F);
	entity.renderYawOffset = f2;
	entity.rotationYaw = f3;
	entity.rotationPitch = f4;
	entity.prevRotationYawHead = f5;
	entity.rotationYawHead = f6;
	GL11.glPopMatrix();
	RenderHelper.disableStandardItemLighting();
	GL11.glDisable(GL12.GL_RESCALE_NORMAL);
	OpenGlHelper.setActiveTexture(OpenGlHelper.lightmapTexUnit);
	GL11.glDisable(GL11.GL_TEXTURE_2D);
	OpenGlHelper.setActiveTexture(OpenGlHelper.defaultTexUnit);
}
}

 

Link to comment
Share on other sites

Stacktrace

 

[18:22:00] [main/INFO] [GradleStart]: Extra: []
[18:22:00] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Important Stuff/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[18:22:00] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[18:22:00] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[18:22:00] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[18:22:00] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[18:22:00] [main/INFO] [FML]: Forge Mod Loader version 7.99.32.1517 for Minecraft 1.7.10 loading
[18:22:00] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_05, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jdk1.8.0_05\jre
[18:22:00] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[18:22:00] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[18:22:00] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
[18:22:00] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[18:22:00] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:22:00] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[18:22:00] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[18:22:00] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:22:00] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:22:00] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[18:22:01] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[18:22:02] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[18:22:02] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[18:22:02] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[18:22:02] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[18:22:02] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
[18:22:02] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
[18:22:02] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[18:22:03] [main/INFO]: Setting user: Player859
[18:22:04] [Client thread/INFO]: LWJGL Version: 2.9.1
[18:22:05] [Client thread/INFO] [sTDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----
// Don't be sad. I'll do better next time, I promise!

Time: 08/10/15 18:22
Description: Loading screen debug info

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_05, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 737644952 bytes (703 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: 
GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 355.98' Renderer: 'GeForce GTX 670/PCIe/SSE2'
[18:22:05] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[18:22:05] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1517 Initialized
[18:22:05] [Client thread/INFO] [FML]: Replaced 183 ore recipies
[18:22:05] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[18:22:06] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[18:22:06] [Client thread/INFO] [FML]: Searching C:\Users\Important Stuff\Desktop\Zombie Stoof\Backpack Mod\eclipse\mods for mods
[18:22:11] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[18:22:11] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, backpack] at CLIENT
[18:22:11] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, backpack] at SERVER
[18:22:11] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Backpack Mod
[18:22:11] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[18:22:11] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
[18:22:11] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[18:22:11] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[18:22:11] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[18:22:11] [Client thread/INFO] [FML]: Applying holder lookups
[18:22:11] [Client thread/INFO] [FML]: Holder lookups applied
[18:22:11] [Client thread/INFO] [FML]: Injecting itemstacks
[18:22:11] [Client thread/INFO] [FML]: Itemstack injection complete
[18:22:12] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[18:22:12] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[18:22:12] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[18:22:12] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
AL lib: (EE) MMDevApiOpenPlayback: Device init failed: 0x80004005
[18:22:12] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[18:22:12] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[18:22:12] [sound Library Loader/INFO]: Sound engine started
[18:22:13] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas
[18:22:13] [Client thread/INFO]: Created: 16x16 textures/items-atlas
[18:22:13] [Client thread/INFO] [FML]: Injecting itemstacks
[18:22:13] [Client thread/INFO] [FML]: Itemstack injection complete
[18:22:13] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[18:22:13] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Backpack Mod
[18:22:14] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[18:22:14] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[18:22:14] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[18:22:14] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...
[18:22:14] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
[18:22:14] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[18:22:14] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[18:22:14] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[18:22:14] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[18:22:14] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[18:22:14] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[18:22:15] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[18:22:15] [sound Library Loader/INFO]: Sound engine started
[18:22:15] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
[18:22:15] [Client thread/ERROR] [TEXTURE ERRORS]: The following texture errors were found.
[18:22:15] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[18:22:15] [Client thread/ERROR] [TEXTURE ERRORS]:   DOMAIN backpack
[18:22:15] [Client thread/ERROR] [TEXTURE ERRORS]: --------------------------------------------------
[18:22:15] [Client thread/ERROR] [TEXTURE ERRORS]:   domain backpack is missing 1 texture
[18:22:15] [Client thread/ERROR] [TEXTURE ERRORS]:     domain backpack has 1 location:
[18:22:15] [Client thread/ERROR] [TEXTURE ERRORS]:       mod backpack resources at C:\Users\Important Stuff\Desktop\Zombie Stoof\Backpack Mod\bin
[18:22:15] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
[18:22:15] [Client thread/ERROR] [TEXTURE ERRORS]:     The missing resources for domain backpack are:
[18:22:15] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/items/backpack.png
[18:22:15] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
[18:22:15] [Client thread/ERROR] [TEXTURE ERRORS]:     No other errors exist for domain backpack
[18:22:15] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[18:22:15] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
[18:22:34] [server thread/INFO]: Starting integrated minecraft server version 1.7.10
[18:22:34] [server thread/INFO]: Generating keypair
[18:22:34] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[18:22:34] [server thread/INFO] [FML]: Applying holder lookups
[18:22:34] [server thread/INFO] [FML]: Holder lookups applied
[18:22:34] [server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@21d933c2)
[18:22:34] [server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@21d933c2)
[18:22:34] [server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@21d933c2)
[18:22:34] [server thread/INFO]: Preparing start region for level 0
[18:22:35] [server thread/INFO]: Preparing spawn area: 99%
[18:22:35] [server thread/INFO]: Changing view distance to 12, from 10
[18:22:36] [Netty Client IO #0/INFO] [FML]: Server protocol version 2
[18:22:36] [Netty IO #1/INFO] [FML]: Client protocol version 2
[18:22:36] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]
[18:22:36] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
[18:22:36] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
[18:22:36] [server thread/INFO] [FML]: [server thread] Server side modded connection established
[18:22:36] [server thread/INFO]: Player859[local:E:28061c55] logged in with entity id 621 at (-129.09993650783377, 71.0, 248.43169647896545)
[18:22:36] [server thread/INFO]: Player859 joined the game
[18:22:36] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
[18:22:36] [server thread/INFO]: Saving and pausing game...
[18:22:36] [server thread/INFO]: Saving chunks for level 'New World'/Overworld
[18:22:37] [server thread/INFO]: Saving chunks for level 'New World'/Nether
[18:22:37] [server thread/INFO]: Saving chunks for level 'New World'/The End
[18:22:39] [Client thread/INFO]: Warning: Clientside chunk ticking took 153 ms
[18:22:39] [server thread/INFO]: Player859 has just earned the achievement [Taking Inventory]
[18:22:39] [Client thread/INFO]: [CHAT] Player859 has just earned the achievement [Taking Inventory]
[18:22:41] [Client thread/INFO]: Warning: Clientside chunk ticking took 303 ms
[18:22:41] [server thread/INFO]: Saving and pausing game...
[18:22:41] [server thread/INFO]: Saving chunks for level 'New World'/Overworld
[18:22:42] [server thread/INFO]: Saving chunks for level 'New World'/Nether
[18:22:42] [server thread/INFO]: Saving chunks for level 'New World'/The End
[18:22:42] [Client thread/INFO]: Warning: Clientside chunk ticking took 204 ms
[18:22:42] [Client thread/INFO]: Warning: Clientside chunk ticking took 186 ms
[18:22:43] [server thread/ERROR] [FML]: SimpleChannelHandlerWrapper exception
java.lang.NullPointerException
at com.backpack.gui.GuiHandler.getServerGuiElement(GuiHandler.java:16) ~[GuiHandler.class:?]
at cpw.mods.fml.common.network.NetworkRegistry.getRemoteGuiContainer(NetworkRegistry.java:243) ~[NetworkRegistry.class:?]
at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:75) ~[FMLNetworkHandler.class:?]
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2501) ~[EntityPlayer.class:?]
at com.backpack.packets.OpenPlayerInventory$Handler.onMessage(OpenPlayerInventory.java:46) ~[OpenPlayerInventory$Handler.class:?]
at com.backpack.packets.OpenPlayerInventory$Handler.onMessage(OpenPlayerInventory.java:1) ~[OpenPlayerInventory$Handler.class:?]
at cpw.mods.fml.common.network.simpleimpl.SimpleChannelHandlerWrapper.channelRead0(SimpleChannelHandlerWrapper.java:37) ~[simpleChannelHandlerWrapper.class:?]
at cpw.mods.fml.common.network.simpleimpl.SimpleChannelHandlerWrapper.channelRead0(SimpleChannelHandlerWrapper.java:17) ~[simpleChannelHandlerWrapper.class:?]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[simpleChannelInboundHandler.class:?]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?]
at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [MessageToMessageCodec.class:?]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?]
at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?]
at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86) [FMLProxyPacket.class:?]
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) [NetworkManager.class:?]
at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) [MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
[18:22:43] [server thread/ERROR] [FML]: There was a critical exception handling a packet on channel Backpack
java.lang.NullPointerException
at com.backpack.gui.GuiHandler.getServerGuiElement(GuiHandler.java:16) ~[GuiHandler.class:?]
at cpw.mods.fml.common.network.NetworkRegistry.getRemoteGuiContainer(NetworkRegistry.java:243) ~[NetworkRegistry.class:?]
at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:75) ~[FMLNetworkHandler.class:?]
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2501) ~[EntityPlayer.class:?]
at com.backpack.packets.OpenPlayerInventory$Handler.onMessage(OpenPlayerInventory.java:46) ~[OpenPlayerInventory$Handler.class:?]
at com.backpack.packets.OpenPlayerInventory$Handler.onMessage(OpenPlayerInventory.java:1) ~[OpenPlayerInventory$Handler.class:?]
at cpw.mods.fml.common.network.simpleimpl.SimpleChannelHandlerWrapper.channelRead0(SimpleChannelHandlerWrapper.java:37) ~[simpleChannelHandlerWrapper.class:?]
at cpw.mods.fml.common.network.simpleimpl.SimpleChannelHandlerWrapper.channelRead0(SimpleChannelHandlerWrapper.java:17) ~[simpleChannelHandlerWrapper.class:?]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[simpleChannelInboundHandler.class:?]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) ~[DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) ~[DefaultChannelHandlerContext.class:?]
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[MessageToMessageDecoder.class:?]
at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:?]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) ~[DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) ~[DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) ~[DefaultChannelPipeline.class:?]
at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) ~[EmbeddedChannel.class:?]
at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86) [FMLProxyPacket.class:?]
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) [NetworkManager.class:?]
at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) [NetworkSystem.class:?]
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) [MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) [integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
[18:22:43] [server thread/INFO]: Stopping server
[18:22:43] [server thread/INFO]: Saving players
[18:22:43] [server thread/INFO]: Saving worlds
[18:22:43] [server thread/INFO]: Saving chunks for level 'New World'/Overworld
[18:22:43] [server thread/INFO]: Saving chunks for level 'New World'/Nether
[18:22:43] [server thread/INFO]: Saving chunks for level 'New World'/The End
[18:22:44] [server thread/INFO] [FML]: Unloading dimension 0
[18:22:44] [server thread/INFO] [FML]: Unloading dimension -1
[18:22:44] [server thread/INFO] [FML]: Unloading dimension 1
[18:22:44] [server thread/INFO] [FML]: Applying holder lookups
[18:22:44] [server thread/INFO] [FML]: Holder lookups applied
[18:22:47] [Client thread/INFO]: Stopping!
[18:22:47] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[18:22:47] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...
[18:22:47] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
[18:22:47] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

Link to comment
Share on other sites

ExtendedPlayer

 

package com.backpack.properties;

import com.backpack.inventories.InventoryPlayerSurvival;

import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
import net.minecraftforge.common.IExtendedEntityProperties;

public class ExtendedPlayer implements IExtendedEntityProperties
{

public final static String EXT_PROP_NAME = "ExtendedPlayerInventory";

private final EntityPlayer player;

public final InventoryPlayerSurvival inventory = new InventoryPlayerSurvival();

public ExtendedPlayer(EntityPlayer player)
{
	this.player = player;
}

public static final void register(EntityPlayer player)
{
	player.registerExtendedProperties(ExtendedPlayer.EXT_PROP_NAME, new ExtendedPlayer(player));
}

public static final ExtendedPlayer get(EntityPlayer player) 
{
	return (ExtendedPlayer) player.getExtendedProperties(EXT_PROP_NAME);
}

@Override
public void saveNBTData(NBTTagCompound compound) 
{
	NBTTagCompound properties = new NBTTagCompound();

	this.inventory.writeToNBT(properties);

	compound.setTag(EXT_PROP_NAME, properties);
}

@Override
public void loadNBTData(NBTTagCompound compound) 
{
	NBTTagCompound properties = (NBTTagCompound) compound.getTag(EXT_PROP_NAME);

	this.inventory.readFromNBT(properties);
}

@Override
public void init(Entity entity, World world) 
{

}
}
[/spoiler]

Link to comment
Share on other sites

Oops, I accidentally forgot to uncomment the code, but now I am getting a different error:

 

 

[18:55:25] [main/INFO] [GradleStart]: Extra: []
[18:55:25] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Important Stuff/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[18:55:25] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[18:55:25] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[18:55:25] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[18:55:25] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[18:55:25] [main/INFO] [FML]: Forge Mod Loader version 7.99.32.1517 for Minecraft 1.7.10 loading
[18:55:25] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_05, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jdk1.8.0_05\jre
[18:55:25] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[18:55:25] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[18:55:25] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
[18:55:25] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[18:55:25] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:55:25] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[18:55:25] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[18:55:25] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:55:25] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:55:25] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[18:55:25] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[18:55:27] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[18:55:27] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[18:55:27] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[18:55:28] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[18:55:28] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
[18:55:28] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
[18:55:28] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[18:55:29] [main/INFO]: Setting user: Player687
[18:55:31] [Client thread/INFO]: LWJGL Version: 2.9.1
[18:55:33] [Client thread/INFO] [sTDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ----
// I blame Dinnerbone.

Time: 08/10/15 18:55
Description: Loading screen debug info

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_05, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 750182496 bytes (715 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: 
GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 355.98' Renderer: 'GeForce GTX 670/PCIe/SSE2'
[18:55:33] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[18:55:33] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1517 Initialized
[18:55:33] [Client thread/INFO] [FML]: Replaced 183 ore recipies
[18:55:33] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[18:55:33] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer
[18:55:33] [Client thread/INFO] [FML]: Searching C:\Users\Important Stuff\Desktop\Zombie Stoof\Backpack Mod\eclipse\mods for mods
[18:55:40] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[18:55:40] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, backpack] at CLIENT
[18:55:40] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, backpack] at SERVER
[18:55:41] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Backpack Mod
[18:55:41] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[18:55:41] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
[18:55:41] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations
[18:55:41] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[18:55:41] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[18:55:41] [Client thread/INFO] [FML]: Applying holder lookups
[18:55:41] [Client thread/INFO] [FML]: Holder lookups applied
[18:55:41] [Client thread/INFO] [FML]: Injecting itemstacks
[18:55:41] [Client thread/INFO] [FML]: Itemstack injection complete
[18:55:41] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[18:55:41] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[18:55:41] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[18:55:41] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[18:55:41] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[18:55:42] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[18:55:42] [sound Library Loader/INFO]: Sound engine started
[18:55:43] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas
[18:55:43] [Client thread/INFO]: Created: 16x16 textures/items-atlas
[18:55:43] [Client thread/INFO] [FML]: Injecting itemstacks
[18:55:43] [Client thread/INFO] [FML]: Itemstack injection complete
[18:55:43] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[18:55:43] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Backpack Mod
[18:55:44] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas
[18:55:44] [Client thread/INFO]: Created: 256x256 textures/items-atlas
[18:55:44] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[18:55:44] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...
[18:55:44] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
[18:55:44] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[18:55:44] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[18:55:44] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...
[18:55:44] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[18:55:44] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[18:55:44] [Thread-10/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[18:55:45] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[18:55:45] [sound Library Loader/INFO]: Sound engine started
[18:55:45] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
[18:55:45] [Client thread/ERROR] [TEXTURE ERRORS]: The following texture errors were found.
[18:55:45] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[18:55:45] [Client thread/ERROR] [TEXTURE ERRORS]:   DOMAIN backpack
[18:55:45] [Client thread/ERROR] [TEXTURE ERRORS]: --------------------------------------------------
[18:55:45] [Client thread/ERROR] [TEXTURE ERRORS]:   domain backpack is missing 1 texture
[18:55:45] [Client thread/ERROR] [TEXTURE ERRORS]:     domain backpack has 1 location:
[18:55:45] [Client thread/ERROR] [TEXTURE ERRORS]:       mod backpack resources at C:\Users\Important Stuff\Desktop\Zombie Stoof\Backpack Mod\bin
[18:55:45] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
[18:55:45] [Client thread/ERROR] [TEXTURE ERRORS]:     The missing resources for domain backpack are:
[18:55:45] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/items/backpack.png
[18:55:45] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
[18:55:45] [Client thread/ERROR] [TEXTURE ERRORS]:     No other errors exist for domain backpack
[18:55:45] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
[18:55:45] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
[18:55:51] [Client thread/INFO]: Deleting level New World
[18:55:51] [Client thread/INFO]: Attempt 1...
[18:55:55] [server thread/INFO]: Starting integrated minecraft server version 1.7.10
[18:55:55] [server thread/INFO]: Generating keypair
[18:55:55] [server thread/INFO]: Converting map!
[18:55:55] [server thread/INFO]: Scanning folders...
[18:55:55] [server thread/INFO]: Total conversion count is 0
[18:55:55] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[18:55:55] [server thread/INFO] [FML]: Applying holder lookups
[18:55:55] [server thread/INFO] [FML]: Holder lookups applied
[18:55:56] [server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@7b597f19)
[18:55:56] [server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@7b597f19)
[18:55:56] [server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@7b597f19)
[18:55:56] [server thread/INFO]: Preparing start region for level 0
[18:55:57] [server thread/INFO]: Preparing spawn area: 7%
[18:55:58] [server thread/INFO]: Preparing spawn area: 18%
[18:55:59] [server thread/INFO]: Preparing spawn area: 32%
[18:56:00] [server thread/INFO]: Preparing spawn area: 47%
[18:56:01] [server thread/INFO]: Preparing spawn area: 67%
[18:56:02] [server thread/INFO]: Preparing spawn area: 87%
[18:56:02] [server thread/INFO]: Changing view distance to 12, from 10
[18:56:03] [Netty Client IO #0/INFO] [FML]: Server protocol version 2
[18:56:03] [Netty IO #1/INFO] [FML]: Client protocol version 2
[18:56:03] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]
[18:56:03] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT
[18:56:03] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER
[18:56:03] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established
[18:56:03] [server thread/INFO] [FML]: [server thread] Server side modded connection established
[18:56:03] [server thread/INFO]: Player687[local:E:b27f206f] logged in with entity id 137 at (-152.5, 76.0, 261.5)
[18:56:03] [server thread/INFO]: Player687 joined the game
[18:56:06] [Client thread/INFO]: Warning: Clientside chunk ticking took 142 ms
[18:56:07] [Client thread/INFO]: Warning: Clientside chunk ticking took 157 ms
[18:56:10] [server thread/INFO]: Player687 has just earned the achievement [Taking Inventory]
[18:56:10] [Client thread/INFO]: [CHAT] Player687 has just earned the achievement [Taking Inventory]
[18:56:14] [Client thread/ERROR] [FML]: OpenGuiHandler exception
java.lang.ClassCastException: com.backpack.gui.ContainerPlayerSurvival cannot be cast to net.minecraft.client.gui.GuiScreen
at cpw.mods.fml.client.FMLClientHandler.showGuiScreen(FMLClientHandler.java:471) ~[FMLClientHandler.class:?]
at cpw.mods.fml.common.FMLCommonHandler.showGuiScreen(FMLCommonHandler.java:303) ~[FMLCommonHandler.class:?]
at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:94) ~[FMLNetworkHandler.class:?]
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2501) ~[EntityPlayer.class:?]
at cpw.mods.fml.common.network.internal.OpenGuiHandler.channelRead0(OpenGuiHandler.java:16) ~[OpenGuiHandler.class:?]
at cpw.mods.fml.common.network.internal.OpenGuiHandler.channelRead0(OpenGuiHandler.java:11) ~[OpenGuiHandler.class:?]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[simpleChannelInboundHandler.class:?]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:101) [simpleChannelInboundHandler.class:?]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?]
at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [MessageToMessageCodec.class:?]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?]
at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?]
at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86) [FMLProxyPacket.class:?]
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) [NetworkManager.class:?]
at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:317) [PlayerControllerMP.class:?]
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1693) [Minecraft.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1039) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:962) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_05]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
[18:56:14] [Client thread/ERROR] [FML]: HandshakeCompletionHandler exception
java.lang.ClassCastException: com.backpack.gui.ContainerPlayerSurvival cannot be cast to net.minecraft.client.gui.GuiScreen
at cpw.mods.fml.client.FMLClientHandler.showGuiScreen(FMLClientHandler.java:471) ~[FMLClientHandler.class:?]
at cpw.mods.fml.common.FMLCommonHandler.showGuiScreen(FMLCommonHandler.java:303) ~[FMLCommonHandler.class:?]
at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:94) ~[FMLNetworkHandler.class:?]
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2501) ~[EntityPlayer.class:?]
at cpw.mods.fml.common.network.internal.OpenGuiHandler.channelRead0(OpenGuiHandler.java:16) ~[OpenGuiHandler.class:?]
at cpw.mods.fml.common.network.internal.OpenGuiHandler.channelRead0(OpenGuiHandler.java:11) ~[OpenGuiHandler.class:?]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[simpleChannelInboundHandler.class:?]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:101) [simpleChannelInboundHandler.class:?]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [MessageToMessageDecoder.class:?]
at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [MessageToMessageCodec.class:?]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) [DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) [DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) [DefaultChannelPipeline.class:?]
at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) [EmbeddedChannel.class:?]
at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86) [FMLProxyPacket.class:?]
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) [NetworkManager.class:?]
at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:317) [PlayerControllerMP.class:?]
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1693) [Minecraft.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1039) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:962) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_05]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
[18:56:14] [Client thread/ERROR] [FML]: There was a critical exception handling a packet on channel FML
java.lang.ClassCastException: com.backpack.gui.ContainerPlayerSurvival cannot be cast to net.minecraft.client.gui.GuiScreen
at cpw.mods.fml.client.FMLClientHandler.showGuiScreen(FMLClientHandler.java:471) ~[FMLClientHandler.class:?]
at cpw.mods.fml.common.FMLCommonHandler.showGuiScreen(FMLCommonHandler.java:303) ~[FMLCommonHandler.class:?]
at cpw.mods.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:94) ~[FMLNetworkHandler.class:?]
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2501) ~[EntityPlayer.class:?]
at cpw.mods.fml.common.network.internal.OpenGuiHandler.channelRead0(OpenGuiHandler.java:16) ~[OpenGuiHandler.class:?]
at cpw.mods.fml.common.network.internal.OpenGuiHandler.channelRead0(OpenGuiHandler.java:11) ~[OpenGuiHandler.class:?]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:98) ~[simpleChannelInboundHandler.class:?]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) ~[DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) ~[DefaultChannelHandlerContext.class:?]
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:101) ~[simpleChannelInboundHandler.class:?]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) ~[DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) ~[DefaultChannelHandlerContext.class:?]
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[MessageToMessageDecoder.class:?]
at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:?]
at io.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:337) ~[DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:323) ~[DefaultChannelHandlerContext.class:?]
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:785) ~[DefaultChannelPipeline.class:?]
at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:169) ~[EmbeddedChannel.class:?]
at cpw.mods.fml.common.network.internal.FMLProxyPacket.processPacket(FMLProxyPacket.java:86) [FMLProxyPacket.class:?]
at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) [NetworkManager.class:?]
at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:317) [PlayerControllerMP.class:?]
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1693) [Minecraft.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1039) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:962) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_05]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_05]
at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_05]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
at GradleStart.main(Unknown Source) [start/:?]
[18:56:14] [server thread/INFO]: Player687 lost connection: TextComponent{text='Disconnected', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null}}
[18:56:14] [server thread/INFO]: Player687 left the game
[18:56:14] [server thread/INFO]: Stopping singleplayer server as player logged out
[18:56:14] [server thread/INFO]: Stopping server
[18:56:14] [server thread/INFO]: Saving players
[18:56:14] [server thread/INFO]: Saving worlds
[18:56:14] [server thread/INFO]: Saving chunks for level 'New World'/Overworld
[18:56:14] [server thread/INFO]: Saving chunks for level 'New World'/Nether
[18:56:14] [server thread/INFO]: Saving chunks for level 'New World'/The End
[18:56:15] [server thread/INFO] [FML]: Unloading dimension 0
[18:56:15] [server thread/INFO] [FML]: Unloading dimension -1
[18:56:15] [server thread/INFO] [FML]: Unloading dimension 1
[18:56:15] [server thread/INFO] [FML]: Applying holder lookups
[18:56:15] [server thread/INFO] [FML]: Holder lookups applied
[18:56:17] [Client thread/INFO]: Stopping!
[18:56:17] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
[18:56:17] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...
[18:56:17] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:     Author: Paul Lamb, www.paulscode.com
[18:56:17] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: 
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

Link to comment
Share on other sites

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

    • Hi, I want to make a client-only mod, everything is ok, but when I use shaders, none of the textures rendered in RenderLevelStageEvent nor the crow entity model are rendered, I want them to be visible, because it's a horror themed mod Here is how i render the crow model in the CrowEntityRenderer<CrowEntity>, by the time i use this method, i know is not the right method but i don't think this is the cause of the problem, the renderType i'm using is entityCutout @Override public void render(CrowEntity p_entity, float entityYaw, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource, int packedLight) { super.render(p_entity, entityYaw, partialTick, poseStack, bufferSource, packedLight); ClientEventHandler.getClient().crow.renderToBuffer(poseStack, bufferSource.getBuffer(ClientEventHandler.getClient().crow .renderType(TEXTURE)), packedLight, OverlayTexture.NO_OVERLAY, Utils.rgb(255, 255, 255)); } Here renderLevelStage @Override public void renderWorld(RenderLevelStageEvent e) { horrorEvents.draw(e); } Here is how i render every event public void draw(RenderLevelStageEvent e) { for (HorrorEvent event : currentHorrorEvents) { event.tick(e.getPartialTick()); event.draw(e); } } Here is how i render the crow model on the event @Override public void draw(RenderLevelStageEvent e) { if(e.getStage() == RenderLevelStageEvent.Stage.AFTER_ENTITIES) { float arcProgress = getArcProgress(0.25f); int alpha = (int) Mth.lerp(arcProgress, 0, 255); int packedLight = LevelRenderer.getLightColor(Minecraft.getInstance().level, blockPos); VertexConsumer builder = ClientEventHandler.bufferSource.getBuffer(crow); Crow<CreepyBirdHorrorEvent> model = ClientEventHandler .getClient().crow; model.setupAnim(this); RenderHelper.renderModelInWorld(model, position, offset, e.getCamera(), e.getPoseStack(), builder, packedLight, OverlayTexture.NO_OVERLAY, alpha); builder = ClientEventHandler.bufferSource.getBuffer(eyes); RenderHelper.renderModelInWorld(model, position, offset, e.getCamera(), e.getPoseStack(), builder, 15728880, OverlayTexture.NO_OVERLAY, alpha); } } How i render the model public static void renderModelInWorld(Model model, Vector3f pos, Vector3f offset, Camera camera, PoseStack matrix, VertexConsumer builder, int light, int overlay, int alpha) { matrix.pushPose(); Vec3 cameraPos = camera.getPosition(); double finalX = pos.x - cameraPos.x + offset.x; double finalY = pos.y - cameraPos.y + offset.y; double finalZ = pos.z - cameraPos.z + offset.z; matrix.pushPose(); matrix.translate(finalX, finalY, finalZ); matrix.mulPose(Axis.XP.rotationDegrees(180f)); model.renderToBuffer(matrix, builder, light, overlay, Utils .rgba(255, 255, 255, alpha)); matrix.popPose(); matrix.popPose(); } Thanks in advance
    • Here's the link: https://mclo.gs/7L5FibL Here's the link: https://mclo.gs/7L5FibL
    • Also the mod "Connector Extras" modifies Reach-entity-attributes and can cause fatal errors when combined with ValkrienSkies mod. Disable this mod and continue to use Syntra without it.
    • Hi everyone. I was trying modify the vanilla loot of the "short_grass" block, I would like it drops seeds and vegetal fiber (new item of my mod), but I don't found any guide or tutorial on internet. Somebody can help me?
    • On 1.20.1 use ValkrienSkies mod version 2.3.0 Beta 1. I had the same issues as you and it turns out the newer beta versions have tons of unresolved incompatibilities. If you change the version you will not be required to change the versions of eureka or any other additions unless prompted at startup. This will resolve Reach-entity-attributes error sound related error and cowardly errors.
  • Topics

×
×
  • Create New...

Important Information

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