Jump to content

[1.8] Entity cannot be cast to EntityLiving[UNSOLVED]


Recommended Posts

Posted

Recently, I started modding for 1.8 and so far it had been going fine until I tried to create an item that's thrown (Antimatter).

It's on https://github.com/Mutantoe/Anti-Minecraft as well.

Here is the code:

Main class:

package com.mutantoe.amin;

import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

import org.apache.logging.log4j.LogManager;

import com.mutantoe.amin.init.AntiBlocks;
import com.mutantoe.amin.init.AntiEntities;
import com.mutantoe.amin.init.AntiItems;
import com.mutantoe.amin.lib.CommonProxy;
import com.mutantoe.amin.lib.LoggerHelper;
import com.mutantoe.amin.lib.Reference;
import com.mutantoe.amin.misc.AntiTab;

@Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.VERSION)
public class AntiMinecraft {
public static final org.apache.logging.log4j.Logger logger = LogManager.getLogger(Reference.MOD_ID);

@SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS)
public static CommonProxy proxy;

public static final AntiTab tabAnti = new AntiTab("tabAnti");
// Config
public static boolean hardRecipies = new Boolean(false);

@EventHandler
public void preInit(FMLPreInitializationEvent event) {
	LoggerHelper.info("Loading Anti-Minecraft Version: " + Reference.VERSION);
	LoggerHelper.debug("preInit starting.");

	// Config
	Configuration config = new Configuration(event.getSuggestedConfigurationFile());
	config.load();
	hardRecipies = config.get(config.CATEGORY_GENERAL, "hardMode", false).getBoolean(false);
	config.save();

	// Blocks
	AntiBlocks.init();
	AntiBlocks.register();
	// Items
	AntiItems.init();
	AntiItems.register();
	// Entities
	AntiEntities.register();
}

@EventHandler
public void init(FMLInitializationEvent event) {
	LoggerHelper.debug("init starting.");
	proxy.registerRenders();
}

@EventHandler
public void postInit(FMLPostInitializationEvent event) {
	LoggerHelper.debug("postInit starting.");

}
}

Items class:

package com.mutantoe.amin.init;

import net.minecraft.client.Minecraft;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.fml.common.registry.GameRegistry;

import com.mutantoe.amin.items.AntiCoal;
import com.mutantoe.amin.items.AntiDiamond;
import com.mutantoe.amin.items.AntiEmerald;
import com.mutantoe.amin.items.AntiGold;
import com.mutantoe.amin.items.AntiIron;
import com.mutantoe.amin.items.Antimatter;
import com.mutantoe.amin.items.Link;
import com.mutantoe.amin.items.ThrowItem;
import com.mutantoe.amin.lib.Reference;

public class AntiItems {

//Resources
public static Item anti_coal;
public static Item anti_diamond;
public static Item anti_emerald;
public static Item anti_gold;
public static Item anti_iron;
public static Item antimatter;

//Util
public static Item link;

public static void init(){
	//Resources
	anti_coal=new AntiCoal().setUnlocalizedName("anti_coal");
	anti_diamond=new AntiDiamond().setUnlocalizedName("anti_diamond");
	anti_emerald=new AntiEmerald().setUnlocalizedName("anti_emerald");
	anti_gold=new AntiGold().setUnlocalizedName("anti_gold");
	anti_iron=new AntiIron().setUnlocalizedName("anti_iron");
	antimatter=new Antimatter().setUnlocalizedName("antimatter");

	//Util
	link=new Link().setUnlocalizedName("link");
}
public static void register(){
	GameRegistry.registerItem(anti_coal, anti_coal.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(anti_diamond, anti_diamond.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(anti_emerald, anti_emerald.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(anti_gold, anti_gold.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(anti_iron, anti_iron.getUnlocalizedName().substring(5));
	GameRegistry.registerItem(antimatter, antimatter.getUnlocalizedName().substring(5));

	GameRegistry.registerItem(link, link.getUnlocalizedName().substring(5));
}
public static void registerRenders(){
	registerRender(anti_coal);
	registerRender(anti_diamond);
	registerRender(anti_emerald);
	registerRender(anti_gold);
	registerRender(anti_iron);
	registerRender(antimatter);

	registerRender(link);
}
public static void registerRender(Item item){
	Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID+":"+item.getUnlocalizedName().substring(5), "inventory"));
}
}

Item (the thrown one) class:

package com.mutantoe.amin.items;

import java.util.List;

import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

import com.mutantoe.amin.AntiMinecraft;
import com.mutantoe.amin.entity.EntityAntimatter;
import com.mutantoe.amin.lib.LoggerHelper;

public class Antimatter extends Item {
public Antimatter() {
	this.maxStackSize = 1;
	this.setCreativeTab(AntiMinecraft.tabAnti);
}

@Override
public ItemStack onItemRightClick(ItemStack stack, World worldIn, EntityPlayer playerIn) {
	System.out.println("RIGHTCLICK");
	if (stack.getTagCompound() != null) {
		LoggerHelper.info("stack.getTagCompound() != null");
		if (stack.getTagCompound().hasKey("isCharged")) {
			LoggerHelper.info("stack.getTagCompound().hasKey(\"isCharged\")");
			if (playerIn.isSneaking()) {
				LoggerHelper.info("SNEAKING");
				stack.getTagCompound().removeTag("isCharged");
				stack.clearCustomName();
			} else {
				LoggerHelper.info("NOT SNEAKING");
				if (!worldIn.isRemote) {
					LoggerHelper.info("WORLD NOT REMOTE");
					worldIn.spawnEntityInWorld(new EntityAntimatter(worldIn, playerIn));
					--stack.stackSize;
				}
			}
		}
	} else {
		if (playerIn.isSneaking()) {
			stack.setTagCompound(new NBTTagCompound());
			NBTTagCompound nbt = new NBTTagCompound();
			nbt.setBoolean("charged", true);
			stack.getTagCompound().setTag("isCharged", nbt);
			stack.setStackDisplayName(EnumChatFormatting.RED + "Antimatter");
		} else {

		}
	}

	return stack;
}

@Override
@SideOnly(Side.CLIENT)
public void addInformation(ItemStack stack, EntityPlayer playerIn, List toolTip, boolean advanced) {
	if (stack.getTagCompound() != null) {
		if (stack.getTagCompound().hasKey("isCharged")) {
			toolTip.add("Charged");
		}
	}
}

@Override
@SideOnly(Side.CLIENT)
public boolean hasEffect(ItemStack stack) {
	if (stack.getTagCompound() != null) {
		return stack.getTagCompound().hasKey("isCharged");
	}
	return false;
}
}

Entities class:

package com.mutantoe.amin.init;

import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraftforge.fml.common.registry.EntityRegistry;

import com.mutantoe.amin.AntiMinecraft;
import com.mutantoe.amin.entity.EntityAntimatter;
import com.mutantoe.amin.lib.Reference;

public class AntiEntities {
public static EntityAntimatter EntityAntimatter;

public static void register() {
	EntityRegistry.registerModEntity(EntityAntimatter.class, "Antimatter", 0, Reference.MOD_ID, 64, 1, true);
}

}

Entity class: (I think the error is here)

package com.mutantoe.amin.entity;

import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.projectile.EntityThrowable;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.world.World;


public class EntityAntimatter extends EntityThrowable {

public EntityAntimatter(World world, double posX, double posY, double posZ) {
	super(world, posX, posY, posZ);
}

public EntityAntimatter(World world, EntityPlayer EntityLivingBase) {
	super(world, EntityLivingBase);
}

public EntityAntimatter(World world) {
	super(world);
}

@Override
protected void onImpact(MovingObjectPosition mop) {
	double blockX = mop.hitVec.xCoord;
	double blockY = mop.hitVec.yCoord;
	double blockZ = mop.hitVec.zCoord;
	switch (mop.sideHit) {
	case DOWN:
		blockY--;
		break;
	case UP:
		blockY++;
		break;
	case EAST:
		blockZ--;
		break;
	case WEST:
		blockZ++;
		break;
	case NORTH:
		blockX--;
		break;
	case SOUTH:
		blockX++;
		break;
	}
	this.worldObj.newExplosion((Entity)this, blockX, blockY, blockZ, 10.0F, true, true);
	if (!this.worldObj.isRemote) {
		this.setDead();
	}
}
}

Client proxy:

package com.mutantoe.amin.lib;

import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.entity.RenderSnowball;
import net.minecraftforge.fml.client.registry.RenderingRegistry;

import com.mutantoe.amin.entity.EntityAntimatter;
import com.mutantoe.amin.init.AntiBlocks;
import com.mutantoe.amin.init.AntiItems;
import com.mutantoe.amin.render.RenderEntityAntimatter;


public class ClientProxy extends CommonProxy {
@Override
public void registerRenders() {
	AntiItems.registerRenders();
	AntiBlocks.registerRenders();

	RenderingRegistry.registerEntityRenderingHandler(EntityAntimatter.class, new RenderSnowball(Minecraft.getMinecraft().getRenderManager(), AntiItems.antimatter, [b][color=red]!WHAT GOES HERE![/color][/b]));
}
}

 

Here is the log:

[18:22:04] [main/INFO] [GradleStart]: username: Mutantoe
[18:22:04] [main/INFO] [GradleStart]: Extra: []
[18:22:04] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Joe/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --username, Mutantoe, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker]
[18:22:05] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[18:22:05] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[18:22:05] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker
[18:22:05] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[18:22:05] [main/INFO] [FML]: Forge Mod Loader version 8.0.37.1329 for Minecraft 1.8 loading
[18:22:05] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_31, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_31
[18:22:05] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[18:22:05] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker
[18:22:05] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[18:22:05] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[18:22:05] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:22:05] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[18:22:05] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:22:05] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:22:05] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[18:22:05] [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:08] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[18:22:08] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[18:22:08] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[18:22:08] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[18:22:08] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[18:22:08] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[18:22:10] [Client thread/INFO]: Setting user: Mutantoe
[18:22:12] [Client thread/INFO]: LWJGL Version: 2.9.1
[18:22:13] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[18:22:13] [Client thread/INFO] [FML]: MinecraftForge v11.14.1.1329 Initialized
[18:22:13] [Client thread/INFO] [FML]: Replaced 204 ore recipies
[18:22:13] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[18:22:13] [Client thread/INFO] [FML]: Searching C:\Users\Joe\Documents\GitHub\Anti-Minecraft\eclipse\mods for mods
[18:22:14] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[18:22:15] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, AMC] at CLIENT
[18:22:15] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, AMC] at SERVER
[18:22:15] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Anti-Minecraft
[18:22:15] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[18:22:15] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations
[18:22:15] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[18:22:15] [Client thread/INFO] [AMC]: Loading Anti-Minecraft Version: 1.0
[18:22:15] [Client thread/INFO] [FML]: Applying holder lookups
[18:22:15] [Client thread/INFO] [FML]: Holder lookups applied
[18:22:16] [sound Library Loader/INFO]: Starting up SoundSystem...
[18:22:16] [Thread-7/INFO]: Initializing LWJGL OpenAL
[18:22:16] [Thread-7/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[18:22:16] [Thread-7/INFO]: OpenAL initialized.
[18:22:17] [sound Library Loader/INFO]: Sound engine started
[18:22:23] [Client thread/INFO]: Created: 512x512 textures-atlas
[18:22:25] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[18:22:25] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Anti-Minecraft
[18:22:25] [Client thread/INFO]: SoundSystem shutting down...
[18:22:25] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[18:22:25] [sound Library Loader/INFO]: Starting up SoundSystem...
[18:22:25] [Thread-9/INFO]: Initializing LWJGL OpenAL
[18:22:25] [Thread-9/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[18:22:25] [Thread-9/INFO]: OpenAL initialized.
[18:22:25] [sound Library Loader/INFO]: Sound engine started
[18:22:31] [Client thread/INFO]: Created: 512x512 textures-atlas
[18:23:52] [Client thread/INFO]: Deleting level New World
[18:23:52] [Client thread/INFO]: Attempt 1...
[18:23:55] [server thread/INFO]: Starting integrated minecraft server version 1.8
[18:23:55] [server thread/INFO]: Generating keypair
[18:23:55] [server thread/INFO]: Converting map!
[18:23:55] [server thread/INFO]: Scanning folders...
[18:23:55] [server thread/INFO]: Total conversion count is 0
[18:23:55] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[18:23:56] [server thread/INFO] [FML]: Applying holder lookups
[18:23:56] [server thread/INFO] [FML]: Holder lookups applied
[18:23:56] [server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@5def5577)
[18:23:56] [server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@5def5577)
[18:23:56] [server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@5def5577)
[18:23:56] [server thread/INFO]: Preparing start region for level 0
[18:23:57] [server thread/INFO]: Preparing spawn area: 5%
[18:23:58] [server thread/INFO]: Preparing spawn area: 13%
[18:23:59] [server thread/INFO]: Preparing spawn area: 23%
[18:24:00] [server thread/INFO]: Preparing spawn area: 30%
[18:24:01] [server thread/INFO]: Preparing spawn area: 40%
[18:24:02] [server thread/INFO]: Preparing spawn area: 49%
[18:24:03] [server thread/INFO]: Preparing spawn area: 59%
[18:24:04] [server thread/INFO]: Preparing spawn area: 68%
[18:24:05] [server thread/INFO]: Preparing spawn area: 78%
[18:24:06] [server thread/INFO]: Preparing spawn area: 91%
[18:24:07] [server thread/INFO]: Changing view distance to 12, from 10
[18:24:08] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 1
[18:24:08] [Netty Server IO #1/INFO] [FML]: Client protocol version 1
[18:24:08] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]
[18:24:08] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
[18:24:08] [server thread/INFO] [FML]: [server thread] Server side modded connection established
[18:24:08] [server thread/INFO]: Mutantoe[local:E:c44d72bd] logged in with entity id 231 at (-43.5, 69.0, 238.5)
[18:24:08] [server thread/INFO]: Mutantoe joined the game
[18:24:12] [server thread/INFO]: Saving and pausing game...
[18:24:12] [server thread/INFO]: Saving chunks for level 'New World'/Overworld
[18:24:19] [server thread/INFO]: Saving chunks for level 'New World'/Nether
[18:24:19] [server thread/INFO]: Saving chunks for level 'New World'/The End
[18:24:19] [server thread/INFO]: Mutantoe has just earned the achievement [Taking Inventory]
[18:24:19] [Client thread/INFO]: [CHAT] Mutantoe has just earned the achievement [Taking Inventory]
[18:24:22] [server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 13270ms behind, skipping 265 tick(s)
[18:24:24] [server thread/INFO] [AMC]: THROW
[18:24:27] [server thread/INFO]: Stopping server
[18:24:27] [server thread/INFO]: Saving players
[18:24:27] [server thread/INFO]: Saving worlds
[18:24:27] [server thread/INFO]: Saving chunks for level 'New World'/Overworld
[18:24:28] [server thread/INFO]: Saving chunks for level 'New World'/Nether
[18:24:28] [server thread/INFO]: Saving chunks for level 'New World'/The End
[18:24:30] [server thread/INFO] [FML]: Unloading dimension 0
[18:24:30] [server thread/INFO] [FML]: Unloading dimension -1
[18:24:30] [server thread/INFO] [FML]: Unloading dimension 1
[18:24:30] [server thread/INFO] [FML]: Applying holder lookups
[18:24:30] [server thread/INFO] [FML]: Holder lookups applied
[18:24:31] [Client thread/FATAL]: Unreported exception thrown!
java.lang.ClassCastException: com.mutantoe.amin.entity.EntityAntimatter cannot be cast to net.minecraft.entity.EntityLiving
at net.minecraft.client.renderer.entity.RenderLiving.shouldRender(RenderLiving.java:204) ~[RenderLiving.class:?]
at net.minecraft.client.renderer.entity.RenderManager.shouldRender(RenderManager.java:307) ~[RenderManager.class:?]
at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:645) ~[RenderGlobal.class:?]
at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1350) ~[EntityRenderer.class:?]
at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1263) ~[EntityRenderer.class:?]
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1088) ~[EntityRenderer.class:?]
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1107) ~[Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:376) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:117) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:85) [start/:?]
at GradleStart.main(GradleStart.java:45) [start/:?]
[18:24:31] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:660]: ---- Minecraft Crash Report ----
// Don't be sad, have a hug! <3

Time: 26/02/15 18:24
Description: Unexpected error

java.lang.ClassCastException: com.mutantoe.amin.entity.EntityAntimatter cannot be cast to net.minecraft.entity.EntityLiving
at net.minecraft.client.renderer.entity.RenderLiving.shouldRender(RenderLiving.java:204)
at net.minecraft.client.renderer.entity.RenderManager.shouldRender(RenderManager.java:307)
at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:645)
at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1350)
at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1263)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1088)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1107)
at net.minecraft.client.Minecraft.run(Minecraft.java:376)
at net.minecraft.client.main.Main.main(Main.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:85)
at GradleStart.main(GradleStart.java:45)


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

-- Head --
Stacktrace:
at net.minecraft.client.renderer.entity.RenderLiving.shouldRender(RenderLiving.java:204)
at net.minecraft.client.renderer.entity.RenderManager.shouldRender(RenderManager.java:307)
at net.minecraft.client.renderer.RenderGlobal.renderEntities(RenderGlobal.java:645)
at net.minecraft.client.renderer.EntityRenderer.renderWorldPass(EntityRenderer.java:1350)
at net.minecraft.client.renderer.EntityRenderer.renderWorld(EntityRenderer.java:1263)

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityPlayerSP['Mutantoe'/231, l='MpServer', x=-43.50, y=76.74, z=238.50]]
Chunk stats: MultiplayerChunkCache: 509, 509
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options: 
Level spawn location: -36.00,64.00,248.00 - World: (-36,64,248), Chunk: (at 12,4,8 in -3,15; contains blocks -48,0,240 to -33,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Level time: 74 game time, 74 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
Forced entities: 188 total; [EntityFallingBlock['Falling Block'/2048, l='MpServer', x=-49.50, y=31.00, z=130.50], EntityFallingBlock['Falling Block'/2050, l='MpServer', x=-49.50, y=66.00, z=179.50], EntityFallingBlock['Falling Block'/2051, l='MpServer', x=-48.50, y=66.00, z=179.50], EntityFallingBlock['Falling Block'/2052, l='MpServer', x=-47.50, y=66.00, z=179.50], EntityFallingBlock['Falling Block'/2053, l='MpServer', x=-53.50, y=46.92, z=213.50], EntityFallingBlock['Falling Block'/2054, l='MpServer', x=-55.50, y=46.00, z=213.50], EntityFallingBlock['Falling Block'/2055, l='MpServer', x=-53.50, y=46.92, z=214.50], EntityFallingBlock['Falling Block'/2056, l='MpServer', x=-52.50, y=46.00, z=213.50], EntityFallingBlock['Falling Block'/2057, l='MpServer', x=-55.50, y=46.92, z=215.50], EntityFallingBlock['Falling Block'/2058, l='MpServer', x=-54.50, y=48.92, z=215.50], EntityBat['Bat'/1035, l='MpServer', x=-53.91, y=43.50, z=318.97], EntityFallingBlock['Falling Block'/2059, l='MpServer', x=-53.50, y=47.92, z=215.50], EntityBat['Bat'/1036, l='MpServer', x=-54.31, y=42.25, z=320.63], EntityFallingBlock['Falling Block'/2060, l='MpServer', x=-52.50, y=46.92, z=214.50], EntityFallingBlock['Falling Block'/2072, l='MpServer', x=-52.50, y=47.41, z=215.50], EntityFallingBlock['Falling Block'/2073, l='MpServer', x=-54.50, y=48.41, z=216.50], EntityFallingBlock['Falling Block'/2074, l='MpServer', x=-53.50, y=48.41, z=216.50], EntityAntimatter['entity.AMC.Antimatter.name'/2078, l='MpServer', x=-43.81, y=78.71, z=241.39], EntityFallingBlock['Falling Block'/2079, l='MpServer', x=-41.50, y=15.88, z=364.50], EntityFallingBlock['Falling Block'/2080, l='MpServer', x=-44.50, y=15.88, z=362.50], EntityFallingBlock['Falling Block'/2081, l='MpServer', x=-41.50, y=9.88, z=368.50], EntityFallingBlock['Falling Block'/2082, l='MpServer', x=-41.50, y=9.88, z=367.50], EntityFallingBlock['Falling Block'/2083, l='MpServer', x=-45.50, y=10.88, z=365.50], EntityFallingBlock['Falling Block'/2084, l='MpServer', x=-46.50, y=10.88, z=366.50], EntityFallingBlock['Falling Block'/2085, l='MpServer', x=-46.50, y=10.88, z=365.50], EntityFallingBlock['Falling Block'/2086, l='MpServer', x=-45.50, y=11.88, z=364.50], EntityFallingBlock['Falling Block'/2087, l='MpServer', x=-46.50, y=11.88, z=364.50], EntityFallingBlock['Falling Block'/2088, l='MpServer', x=-47.50, y=11.88, z=364.50], EntityFallingBlock['Falling Block'/2089, l='MpServer', x=-47.50, y=10.88, z=363.50], EntityFallingBlock['Falling Block'/2090, l='MpServer', x=-47.50, y=11.88, z=365.50], EntityFallingBlock['Falling Block'/2091, l='MpServer', x=-46.50, y=11.88, z=363.50], EntityFallingBlock['Falling Block'/2092, l='MpServer', x=-45.50, y=11.88, z=363.50], EntityFallingBlock['Falling Block'/2093, l='MpServer', x=-47.50, y=15.88, z=381.50], EntityFallingBlock['Falling Block'/2094, l='MpServer', x=-46.50, y=15.88, z=379.50], EntityFallingBlock['Falling Block'/2095, l='MpServer', x=-45.50, y=15.88, z=377.50], EntityFallingBlock['Falling Block'/2096, l='MpServer', x=-48.50, y=15.88, z=374.50], EntityWolf['Wolf'/67, l='MpServer', x=-112.50, y=69.00, z=275.50], EntityWolf['Wolf'/68, l='MpServer', x=-114.50, y=69.00, z=276.50], EntityWolf['Wolf'/69, l='MpServer', x=-115.50, y=69.00, z=278.50], EntityWolf['Wolf'/70, l='MpServer', x=-117.50, y=69.00, z=275.50], EntityZombie['Zombie'/1095, l='MpServer', x=-25.50, y=42.02, z=248.50], EntityZombie['Zombie'/1096, l='MpServer', x=-122.50, y=16.02, z=294.50], EntityCreeper['Creeper'/1621, l='MpServer', x=7.50, y=25.02, z=194.50], EntitySheep['Sheep'/94, l='MpServer', x=-45.50, y=70.00, z=263.50], EntitySheep['Sheep'/95, l='MpServer', x=-42.50, y=70.00, z=263.78], EntitySheep['Sheep'/96, l='MpServer', x=-42.50, y=70.00, z=262.53], EntitySheep['Sheep'/97, l='MpServer', x=-42.50, y=70.00, z=261.00], EntityChicken['Chicken'/98, l='MpServer', x=-42.71, y=70.00, z=266.21], EntityChicken['Chicken'/99, l='MpServer', x=-36.50, y=71.00, z=269.50], EntityChicken['Chicken'/100, l='MpServer', x=-37.50, y=71.00, z=265.50], EntityChicken['Chicken'/101, l='MpServer', x=-36.50, y=71.00, z=265.50], EntitySheep['Sheep'/102, l='MpServer', x=-33.50, y=72.00, z=265.19], EntitySheep['Sheep'/103, l='MpServer', x=-33.81, y=72.00, z=266.53], EntitySheep['Sheep'/104, l='MpServer', x=-32.47, y=73.00, z=267.78], EntitySheep['Sheep'/105, l='MpServer', x=-30.50, y=74.00, z=268.50], EntityRabbit['Rabbit'/106, l='MpServer', x=-35.50, y=72.00, z=275.50], EntityRabbit['Rabbit'/107, l='MpServer', x=-36.66, y=72.00, z=274.34], EntityRabbit['Rabbit'/108, l='MpServer', x=-38.66, y=72.00, z=274.34], EntityChicken['Chicken'/109, l='MpServer', x=-38.50, y=75.00, z=294.50], EntityChicken['Chicken'/110, l='MpServer', x=-37.53, y=76.01, z=299.50], EntityChicken['Chicken'/111, l='MpServer', x=-35.50, y=74.00, z=292.50], EntityChicken['Chicken'/112, l='MpServer', x=-34.50, y=76.00, z=295.50], EntityBat['Bat'/624, l='MpServer', x=-95.59, y=60.22, z=172.66], EntityChicken['Chicken'/113, l='MpServer', x=-26.50, y=75.00, z=297.50], EntityChicken['Chicken'/114, l='MpServer', x=-25.50, y=75.00, z=296.50], EntityChicken['Chicken'/115, l='MpServer', x=-29.24, y=76.09, z=299.47], EntityChicken['Chicken'/116, l='MpServer', x=-28.50, y=76.00, z=302.50], EntityChicken['Chicken'/124, l='MpServer', x=-10.50, y=74.00, z=257.50], EntityChicken['Chicken'/125, l='MpServer', x=-10.50, y=74.00, z=254.50], EntityChicken['Chicken'/126, l='MpServer', x=-9.50, y=74.00, z=254.50], EntityChicken['Chicken'/127, l='MpServer', x=-7.42, y=73.00, z=257.41], EntityChicken['Chicken'/128, l='MpServer', x=1.50, y=73.00, z=298.50], EntityChicken['Chicken'/129, l='MpServer', x=-2.50, y=79.00, z=298.50], EntityChicken['Chicken'/130, l='MpServer', x=-0.71, y=77.89, z=296.50], EntityChicken['Chicken'/131, l='MpServer', x=-2.50, y=79.00, z=298.50], EntityChicken['Chicken'/138, l='MpServer', x=14.33, y=69.00, z=249.50], EntityChicken['Chicken'/139, l='MpServer', x=12.50, y=69.00, z=253.50], EntityChicken['Chicken'/140, l='MpServer', x=11.50, y=69.00, z=251.50], EntityCreeper['Creeper'/1164, l='MpServer', x=1.50, y=29.02, z=189.50], EntityChicken['Chicken'/141, l='MpServer', x=9.09, y=71.00, z=250.98], EntityBat['Bat'/653, l='MpServer', x=-116.09, y=28.25, z=296.75], EntityChicken['Chicken'/146, l='MpServer', x=30.50, y=71.00, z=204.50], EntityChicken['Chicken'/147, l='MpServer', x=28.50, y=71.00, z=205.50], EntityChicken['Chicken'/148, l='MpServer', x=26.50, y=71.00, z=203.50], EntityChicken['Chicken'/149, l='MpServer', x=24.50, y=71.00, z=203.50], EntityEnderman['Enderman'/1179, l='MpServer', x=-54.50, y=24.02, z=272.50], EntityEnderman['Enderman'/1180, l='MpServer', x=-53.50, y=24.02, z=268.50], EntityFallingBlock['Falling Block'/1696, l='MpServer', x=-105.50, y=17.43, z=300.50], EntityFallingBlock['Falling Block'/1697, l='MpServer', x=-107.50, y=22.43, z=314.50], EntitySkeleton['Skeleton'/1190, l='MpServer', x=-113.50, y=36.02, z=243.50], EntityBat['Bat'/688, l='MpServer', x=-93.09, y=30.00, z=258.59], EntityBat['Bat'/689, l='MpServer', x=-82.69, y=31.19, z=262.69], EntitySkeleton['Skeleton'/1737, l='MpServer', x=-100.50, y=36.02, z=282.50], EntitySkeleton['Skeleton'/1769, l='MpServer', x=-89.50, y=35.02, z=225.50], EntitySkeleton['Skeleton'/1770, l='MpServer', x=-94.50, y=35.02, z=228.50], EntitySkeleton['Skeleton'/1771, l='MpServer', x=-94.50, y=35.02, z=230.50], EntityPlayerSP['Mutantoe'/231, l='MpServer', x=-43.50, y=76.74, z=238.50], EntityBat['Bat'/786, l='MpServer', x=-1.09, y=45.32, z=179.54], EntityCreeper['Creeper'/1820, l='MpServer', x=-102.50, y=13.02, z=219.50], EntityCreeper['Creeper'/285, l='MpServer', x=3.50, y=53.00, z=291.50], EntityCreeper['Creeper'/1821, l='MpServer', x=-105.50, y=13.02, z=217.50], EntitySkeleton['Skeleton'/286, l='MpServer', x=2.50, y=53.00, z=292.50], EntityCreeper['Creeper'/1822, l='MpServer', x=-106.50, y=13.02, z=219.50], EntitySkeleton['Skeleton'/287, l='MpServer', x=-3.50, y=53.00, z=291.50], EntityBat['Bat'/799, l='MpServer', x=-89.39, y=13.74, z=256.79], EntitySkeleton['Skeleton'/288, l='MpServer', x=-99.50, y=24.00, z=248.50], EntityBat['Bat'/800, l='MpServer', x=-92.03, y=15.26, z=255.31], EntitySkeleton['Skeleton'/289, l='MpServer', x=-105.50, y=24.00, z=247.50], EntityBat['Bat'/801, l='MpServer', x=-89.49, y=14.28, z=260.35], EntityZombie['Zombie'/1831, l='MpServer', x=-119.50, y=50.02, z=237.50], EntityCreeper['Creeper'/1325, l='MpServer', x=-61.50, y=29.02, z=317.50], EntityZombie['Zombie'/1327, l='MpServer', x=-6.50, y=50.02, z=176.50], EntityFallingBlock['Falling Block'/1858, l='MpServer', x=-98.50, y=22.42, z=308.50], EntityZombie['Zombie'/853, l='MpServer', x=-2.25, y=53.00, z=290.50], EntityZombie['Zombie'/854, l='MpServer', x=0.50, y=53.02, z=292.50], EntitySkeleton['Skeleton'/1887, l='MpServer', x=-96.50, y=35.02, z=234.50], EntitySquid['Squid'/864, l='MpServer', x=-9.29, y=60.69, z=179.99], EntitySkeleton['Skeleton'/1888, l='MpServer', x=-97.50, y=35.02, z=232.50], EntitySquid['Squid'/865, l='MpServer', x=-6.51, y=59.48, z=176.48], EntitySkeleton['Skeleton'/1889, l='MpServer', x=-104.50, y=35.02, z=232.50], EntitySquid['Squid'/866, l='MpServer', x=-6.80, y=60.12, z=178.26], EntityZombie['Zombie'/1890, l='MpServer', x=-90.50, y=35.02, z=233.50], EntitySquid['Squid'/867, l='MpServer', x=-6.07, y=59.03, z=174.03], EntitySquid['Squid'/868, l='MpServer', x=13.91, y=62.38, z=178.88], EntitySquid['Squid'/869, l='MpServer', x=16.42, y=60.97, z=178.84], EntitySquid['Squid'/870, l='MpServer', x=18.14, y=62.31, z=177.97], EntitySkeleton['Skeleton'/1916, l='MpServer', x=-22.50, y=19.02, z=169.50], EntitySkeleton['Skeleton'/1917, l='MpServer', x=-24.50, y=19.02, z=169.50], EntityEnderman['Enderman'/904, l='MpServer', x=-13.31, y=26.00, z=160.56], EntityEnderman['Enderman'/905, l='MpServer', x=-12.16, y=26.00, z=161.13], EntitySpider['Spider'/1936, l='MpServer', x=-14.50, y=44.00, z=170.50], EntitySkeleton['Skeleton'/915, l='MpServer', x=-101.50, y=61.02, z=200.50], EntitySkeleton['Skeleton'/1941, l='MpServer', x=-43.50, y=53.02, z=200.50], EntityCreeper['Creeper'/1944, l='MpServer', x=-93.50, y=36.02, z=220.50], EntityCreeper['Creeper'/1945, l='MpServer', x=-93.50, y=36.02, z=219.50], EntityCreeper['Creeper'/1946, l='MpServer', x=-95.50, y=36.02, z=218.50], EntityZombie['Zombie'/1438, l='MpServer', x=-102.50, y=17.02, z=223.50], EntitySkeleton['Skeleton'/1439, l='MpServer', x=-97.50, y=17.02, z=222.50], EntityBat['Bat'/928, l='MpServer', x=-55.25, y=49.02, z=215.34], EntityBat['Bat'/931, l='MpServer', x=-61.09, y=30.22, z=317.78], EntityCreeper['Creeper'/427, l='MpServer', x=-99.50, y=55.02, z=232.50], EntityZombie['Zombie'/429, l='MpServer', x=26.50, y=33.02, z=296.50], EntityFallingBlock['Falling Block'/1455, l='MpServer', x=-125.50, y=11.00, z=268.50], EntityFallingBlock['Falling Block'/1457, l='MpServer', x=-125.50, y=11.00, z=269.50], EntityFallingBlock['Falling Block'/1458, l='MpServer', x=-126.50, y=12.00, z=268.50], EntityFallingBlock['Falling Block'/1459, l='MpServer', x=-126.50, y=11.00, z=269.50], EntityFallingBlock['Falling Block'/1460, l='MpServer', x=-126.50, y=11.00, z=270.50], EntityFallingBlock['Falling Block'/1461, l='MpServer', x=-127.50, y=12.00, z=269.50], EntityFallingBlock['Falling Block'/1462, l='MpServer', x=-127.50, y=12.00, z=270.50], EntityFallingBlock['Falling Block'/1463, l='MpServer', x=-127.50, y=13.00, z=271.50], EntityFallingBlock['Falling Block'/1464, l='MpServer', x=-126.50, y=12.00, z=271.50], EntityFallingBlock['Falling Block'/1465, l='MpServer', x=-127.50, y=13.00, z=272.50], EntityFallingBlock['Falling Block'/1466, l='MpServer', x=-126.50, y=13.00, z=272.50], EntityFallingBlock['Falling Block'/1492, l='MpServer', x=-134.50, y=41.67, z=332.50], EntityFallingBlock['Falling Block'/1493, l='MpServer', x=-134.50, y=41.67, z=331.50], EntityFallingBlock['Falling Block'/1494, l='MpServer', x=-135.50, y=41.67, z=335.50], EntityFallingBlock['Falling Block'/2006, l='MpServer', x=-81.50, y=32.00, z=177.50], EntityFallingBlock['Falling Block'/1495, l='MpServer', x=-135.50, y=42.67, z=333.50], EntityFallingBlock['Falling Block'/2007, l='MpServer', x=-81.50, y=32.00, z=178.50], EntityFallingBlock['Falling Block'/1496, l='MpServer', x=-135.50, y=42.67, z=334.50], EntityFallingBlock['Falling Block'/1497, l='MpServer', x=-136.50, y=42.67, z=333.50], EntityFallingBlock['Falling Block'/1498, l='MpServer', x=-136.50, y=42.67, z=334.50], EntityFallingBlock['Falling Block'/2010, l='MpServer', x=-85.50, y=24.00, z=257.50], EntityFallingBlock['Falling Block'/1499, l='MpServer', x=-135.50, y=42.67, z=332.50], EntityFallingBlock['Falling Block'/2011, l='MpServer', x=-86.50, y=18.97, z=257.50], EntityFallingBlock['Falling Block'/1500, l='MpServer', x=-136.50, y=41.67, z=336.50], EntityFallingBlock['Falling Block'/2012, l='MpServer', x=-87.50, y=24.00, z=256.50], EntityFallingBlock['Falling Block'/1501, l='MpServer', x=-136.50, y=42.67, z=335.50], EntityFallingBlock['Falling Block'/2013, l='MpServer', x=-88.50, y=24.00, z=255.50], EntityFallingBlock['Falling Block'/1502, l='MpServer', x=-135.50, y=41.67, z=336.50], EntityFallingBlock['Falling Block'/1503, l='MpServer', x=-137.50, y=41.67, z=336.50], EntityFallingBlock['Falling Block'/1504, l='MpServer', x=-137.50, y=42.67, z=334.50], EntityFallingBlock['Falling Block'/1505, l='MpServer', x=-137.50, y=42.67, z=335.50], EntityFallingBlock['Falling Block'/1506, l='MpServer', x=-138.50, y=41.67, z=336.50], EntityFallingBlock['Falling Block'/1507, l='MpServer', x=-138.50, y=41.67, z=337.50], EntityFallingBlock['Falling Block'/1508, l='MpServer', x=-137.50, y=41.67, z=337.50], EntityFallingBlock['Falling Block'/2022, l='MpServer', x=-86.50, y=43.00, z=318.50], EntityFallingBlock['Falling Block'/2023, l='MpServer', x=-88.50, y=43.00, z=318.50], EntityFallingBlock['Falling Block'/2024, l='MpServer', x=-88.50, y=42.88, z=319.50], EntityFallingBlock['Falling Block'/2025, l='MpServer', x=-88.50, y=42.88, z=320.50], EntityFallingBlock['Falling Block'/2026, l='MpServer', x=-87.50, y=43.00, z=318.50], EntityFallingBlock['Falling Block'/2027, l='MpServer', x=-87.50, y=43.88, z=319.50], EntityFallingBlock['Falling Block'/2028, l='MpServer', x=-89.50, y=43.00, z=318.50], EntityFallingBlock['Falling Block'/2038, l='MpServer', x=-55.50, y=58.18, z=324.50], EntityFallingBlock['Falling Block'/2039, l='MpServer', x=-54.50, y=58.18, z=324.50], EntityFallingBlock['Falling Block'/2040, l='MpServer', x=-56.50, y=58.18, z=324.50], EntityFallingBlock['Falling Block'/2041, l='MpServer', x=-57.50, y=58.18, z=323.50], EntityFallingBlock['Falling Block'/2042, l='MpServer', x=-56.50, y=58.18, z=323.50]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:392)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2600)
at net.minecraft.client.Minecraft.run(Minecraft.java:405)
at net.minecraft.client.main.Main.main(Main.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:85)
at GradleStart.main(GradleStart.java:45)

-- System Details --
Details:
Minecraft Version: 1.8
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.8.0_31, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 678919632 bytes (647 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
FML: MCP v9.10 FML v8.0.37.1329 Minecraft Forge 11.14.1.1329 4 mods loaded, 4 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{8.0.37.1329} [Forge Mod Loader] (forgeSrc-1.8-11.14.1.1329.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{11.14.1.1329} [Minecraft Forge] (forgeSrc-1.8-11.14.1.1329.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
AMC{1.0} [Anti-Minecraft] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Loaded coremods (and transformers): 
Launched Version: 1.8
LWJGL: 2.9.1
OpenGL: Intel(R) HD Graphics 3000 GL version 3.1.0 - Build 9.17.10.3347, Intel
GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

Using VBOs: No
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
[18:24:31] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:660]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Joe\Documents\GitHub\Anti-Minecraft\eclipse\.\crash-reports\crash-2015-02-26_18.24.31-client.txt
AL lib: (EE) alc_cleanup: 1 device not closed
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

Guest Abrynos
Posted

to cast an entity as EntityLiving you the EntityClass has to extend EntityLiving

Posted

In case the question wasn't answered yet - EntityThrowable is not extending EntityLivingBase, therefore you cannot cast it to "living" thing.

 

#sarcasmOverload

#itsNightAndIAmBored

1.7.10 is no longer supported by forge, you are on your own.

Posted

I changed the entity render registration line with

RenderingRegistry.registerEntityRenderingHandler(EntityAntimatter.class, new RenderSnowball(Minecraft.getMinecraft().getRenderManager(), AntiItems.antimatter, Minecraft.getMinecraft().getRenderItem()));

But I'm still getting this:

[17:10:47] [main/INFO] [GradleStart]: username: Mutantoe
[17:10:47] [main/INFO] [GradleStart]: Extra: []
[17:10:47] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Joe/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken, {REDACTED}, --version, 1.8, --username, Mutantoe, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker]
[17:10:47] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[17:10:47] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[17:10:47] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker
[17:10:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[17:10:47] [main/INFO] [FML]: Forge Mod Loader version 8.0.37.1329 for Minecraft 1.8 loading
[17:10:47] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_31, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre1.8.0_31
[17:10:47] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[17:10:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker
[17:10:47] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[17:10:47] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[17:10:47] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[17:10:47] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[17:10:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[17:10:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[17:10:47] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[17:10:47] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[17:10:50] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[17:10:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[17:10:50] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[17:10:51] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[17:10:51] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[17:10:51] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[17:10:52] [Client thread/INFO]: Setting user: Mutantoe
[17:10:55] [Client thread/INFO]: LWJGL Version: 2.9.1
[17:10:55] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[17:10:55] [Client thread/INFO] [FML]: MinecraftForge v11.14.1.1329 Initialized
[17:10:55] [Client thread/INFO] [FML]: Replaced 204 ore recipies
[17:10:55] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[17:10:55] [Client thread/INFO] [FML]: Searching C:\Users\Joe\Documents\GitHub\Anti-Minecraft\eclipse\mods for mods
[17:10:57] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[17:10:57] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, AMC] at CLIENT
[17:10:57] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, AMC] at SERVER
[17:10:58] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Anti-Minecraft
[17:10:58] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[17:10:58] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations
[17:10:58] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[17:10:58] [Client thread/INFO] [AMC]: Loading Anti-Minecraft Version: 1.0
[17:10:58] [Client thread/INFO] [FML]: Applying holder lookups
[17:10:58] [Client thread/INFO] [FML]: Holder lookups applied
[17:10:58] [sound Library Loader/INFO]: Starting up SoundSystem...
[17:10:58] [Thread-7/INFO]: Initializing LWJGL OpenAL
[17:10:58] [Thread-7/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[17:10:58] [Thread-7/INFO]: OpenAL initialized.
[17:10:59] [sound Library Loader/INFO]: Sound engine started
[17:11:05] [Client thread/INFO]: Created: 512x512 textures-atlas
[17:11:06] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[17:11:06] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Anti-Minecraft
[17:11:07] [Client thread/INFO]: SoundSystem shutting down...
[17:11:07] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[17:11:07] [sound Library Loader/INFO]: Starting up SoundSystem...
[17:11:07] [Thread-9/INFO]: Initializing LWJGL OpenAL
[17:11:07] [Thread-9/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[17:11:07] [Thread-9/INFO]: OpenAL initialized.
[17:11:07] [sound Library Loader/INFO]: Sound engine started
[17:11:13] [Client thread/INFO]: Created: 512x512 textures-atlas
[17:12:40] [Client thread/INFO]: Deleting level New World
[17:12:40] [Client thread/INFO]: Attempt 1...
[17:12:43] [server thread/INFO]: Starting integrated minecraft server version 1.8
[17:12:43] [server thread/INFO]: Generating keypair
[17:12:44] [server thread/INFO]: Converting map!
[17:12:44] [server thread/INFO]: Scanning folders...
[17:12:44] [server thread/INFO]: Total conversion count is 0
[17:12:44] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[17:12:44] [server thread/INFO] [FML]: Applying holder lookups
[17:12:44] [server thread/INFO] [FML]: Holder lookups applied
[17:12:44] [server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@17533a77)
[17:12:44] [server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@17533a77)
[17:12:44] [server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@17533a77)
[17:12:44] [server thread/INFO]: Preparing start region for level 0
[17:12:45] [server thread/INFO]: Preparing spawn area: 6%
[17:12:46] [server thread/INFO]: Preparing spawn area: 16%
[17:12:47] [server thread/INFO]: Preparing spawn area: 28%
[17:12:48] [server thread/INFO]: Preparing spawn area: 41%
[17:12:49] [server thread/INFO]: Preparing spawn area: 53%
[17:12:50] [server thread/INFO]: Preparing spawn area: 63%
[17:12:51] [server thread/INFO]: Preparing spawn area: 77%
[17:12:52] [server thread/INFO]: Preparing spawn area: 91%
[17:12:53] [server thread/INFO]: Changing view distance to 12, from 10
[17:12:54] [Netty Local Client IO #0/INFO] [FML]: Server protocol version 1
[17:12:54] [Netty Server IO #1/INFO] [FML]: Client protocol version 1
[17:12:54] [Netty Server IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]
[17:12:54] [server thread/INFO] [FML]: [server thread] Server side modded connection established
[17:12:54] [Netty Local Client IO #0/INFO] [FML]: [Netty Local Client IO #0] Client side modded connection established
[17:12:54] [server thread/INFO]: Mutantoe[local:E:fd2eea67] logged in with entity id 277 at (-42.5, 67.0, 241.5)
[17:12:54] [server thread/INFO]: Mutantoe joined the game
[17:12:55] [server thread/INFO]: Saving and pausing game...
[17:12:55] [server thread/INFO]: Saving chunks for level 'New World'/Overworld
[17:12:59] [server thread/INFO]: Saving chunks for level 'New World'/Nether
[17:12:59] [server thread/INFO]: Saving chunks for level 'New World'/The End
[17:12:59] [server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 5690ms behind, skipping 113 tick(s)
[17:13:18] [server thread/INFO]: Mutantoe has just earned the achievement [Taking Inventory]
[17:13:18] [Client thread/INFO]: [CHAT] Mutantoe has just earned the achievement [Taking Inventory]
[17:13:25] [server thread/INFO] [AMC]: THROW
[17:13:25] [Client thread/INFO] [sTDOUT]: [net.minecraft.crash.CrashReport:makeCategoryDepth:343]: Negative index in crash report handler (0/12)
[17:13:26] [server thread/INFO]: Stopping server
[17:13:26] [server thread/INFO]: Saving players
[17:13:26] [server thread/INFO]: Saving worlds
[17:13:26] [server thread/INFO]: Saving chunks for level 'New World'/Overworld
[17:13:26] [server thread/INFO]: Saving chunks for level 'New World'/Nether
[17:13:26] [server thread/INFO]: Saving chunks for level 'New World'/The End
[17:13:27] [server thread/INFO] [FML]: Unloading dimension 0
[17:13:27] [server thread/INFO] [FML]: Unloading dimension -1
[17:13:27] [server thread/INFO] [FML]: Unloading dimension 1
[17:13:27] [server thread/INFO] [FML]: Applying holder lookups
[17:13:27] [server thread/INFO] [FML]: Holder lookups applied
[17:13:28] [Client thread/FATAL]: Unreported exception thrown!
java.lang.ClassCastException
[17:13:28] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:660]: ---- Minecraft Crash Report ----
// Would you like a cupcake?

Time: 27/02/15 17:13
Description: Unexpected error

java.lang.ClassCastException


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

-- Head --
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:392)

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityPlayerSP['Mutantoe'/277, l='MpServer', x=-42.50, y=78.36, z=241.50]]
Chunk stats: MultiplayerChunkCache: 507, 507
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options: 
Level spawn location: -36.00,64.00,248.00 - World: (-36,64,248), Chunk: (at 12,4,8 in -3,15; contains blocks -48,0,240 to -33,255,255), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Level time: 193 game time, 193 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
Forced entities: 122 total; [EntityZombie['Zombie'/2097, l='MpServer', x=-96.50, y=24.00, z=195.88], EntityZombie['Zombie'/2098, l='MpServer', x=-100.50, y=28.00, z=202.50], EntityRabbit['Rabbit'/74, l='MpServer', x=-80.50, y=63.00, z=254.50], EntityRabbit['Rabbit'/75, l='MpServer', x=-79.66, y=63.00, z=254.34], EntityRabbit['Rabbit'/76, l='MpServer', x=-70.72, y=64.00, z=242.69], EntityRabbit['Rabbit'/89, l='MpServer', x=-67.09, y=67.00, z=200.91], EntityRabbit['Rabbit'/90, l='MpServer', x=-70.66, y=66.00, z=201.34], EntityRabbit['Rabbit'/91, l='MpServer', x=-68.09, y=67.00, z=200.13], EntityRabbit['Rabbit'/92, l='MpServer', x=-50.88, y=66.15, z=241.15], EntityRabbit['Rabbit'/93, l='MpServer', x=-57.90, y=66.15, z=239.43], EntityRabbit['Rabbit'/94, l='MpServer', x=-60.41, y=65.19, z=229.44], EntityRabbit['Rabbit'/95, l='MpServer', x=-57.50, y=66.00, z=238.50], EntityRabbit['Rabbit'/96, l='MpServer', x=-59.56, y=66.00, z=245.56], EntityRabbit['Rabbit'/97, l='MpServer', x=-58.28, y=66.00, z=237.72], EntityRabbit['Rabbit'/109, l='MpServer', x=-46.41, y=64.00, z=268.31], EntityRabbit['Rabbit'/110, l='MpServer', x=-47.19, y=64.00, z=269.09], EntityRabbit['Rabbit'/111, l='MpServer', x=-46.50, y=63.00, z=272.81], EntityRabbit['Rabbit'/112, l='MpServer', x=-45.13, y=63.00, z=271.22], EntityRabbit['Rabbit'/113, l='MpServer', x=-35.50, y=64.00, z=263.50], EntityRabbit['Rabbit'/114, l='MpServer', x=-40.66, y=63.00, z=268.34], EntityCow['Cow'/135, l='MpServer', x=-26.50, y=81.00, z=162.50], EntityCow['Cow'/136, l='MpServer', x=-25.50, y=79.00, z=164.50], EntityRabbit['Rabbit'/138, l='MpServer', x=-35.38, y=63.00, z=162.75], EntityRabbit['Rabbit'/146, l='MpServer', x=-22.94, y=84.00, z=162.59], EntityRabbit['Rabbit'/147, l='MpServer', x=-17.66, y=85.00, z=165.34], EntityRabbit['Rabbit'/149, l='MpServer', x=-9.50, y=63.00, z=262.50], EntityRabbit['Rabbit'/150, l='MpServer', x=-13.66, y=63.00, z=262.34], EntityRabbit['Rabbit'/151, l='MpServer', x=-15.66, y=64.00, z=262.34], EntityCow['Cow'/161, l='MpServer', x=7.50, y=76.00, z=215.53], EntityCow['Cow'/162, l='MpServer', x=7.50, y=75.00, z=214.34], EntityCow['Cow'/163, l='MpServer', x=7.50, y=74.00, z=213.00], EntityCow['Cow'/164, l='MpServer', x=6.50, y=77.00, z=211.50], EntityCow['Cow'/165, l='MpServer', x=19.44, y=83.00, z=182.78], EntityCow['Cow'/166, l='MpServer', x=14.50, y=89.00, z=176.50], EntityCow['Cow'/167, l='MpServer', x=14.50, y=89.00, z=176.50], EntityCow['Cow'/168, l='MpServer', x=14.50, y=91.00, z=178.50], EntityRabbit['Rabbit'/169, l='MpServer', x=17.84, y=64.00, z=244.09], EntityRabbit['Rabbit'/170, l='MpServer', x=16.34, y=64.00, z=241.34], EntityRabbit['Rabbit'/171, l='MpServer', x=17.16, y=64.00, z=243.38], EntityRabbit['Rabbit'/176, l='MpServer', x=34.09, y=65.00, z=257.75], EntityRabbit['Rabbit'/177, l='MpServer', x=30.34, y=64.00, z=255.34], EntityRabbit['Rabbit'/179, l='MpServer', x=28.50, y=64.00, z=258.50], EntityRabbit['Rabbit'/180, l='MpServer', x=29.34, y=65.00, z=261.34], EntityRabbit['Rabbit'/181, l='MpServer', x=28.34, y=64.00, z=261.34], EntityRabbit['Rabbit'/182, l='MpServer', x=25.50, y=66.00, z=309.50], EntityRabbit['Rabbit'/183, l='MpServer', x=28.34, y=66.00, z=311.34], EntityEnderman['Enderman'/2231, l='MpServer', x=27.10, y=58.00, z=217.38], EntityRabbit['Rabbit'/184, l='MpServer', x=28.34, y=66.00, z=309.34], EntityCreeper['Creeper'/2232, l='MpServer', x=13.50, y=32.00, z=215.50], EntityCreeper['Creeper'/2233, l='MpServer', x=8.50, y=32.00, z=214.50], EntityZombie['Zombie'/2259, l='MpServer', x=7.50, y=39.00, z=200.50], EntityZombie['Zombie'/2260, l='MpServer', x=4.50, y=39.00, z=201.50], EntityZombie['Zombie'/2261, l='MpServer', x=6.50, y=39.00, z=200.50], EntityCreeper['Creeper'/2279, l='MpServer', x=-21.50, y=32.00, z=240.50], EntitySkeleton['Skeleton'/2311, l='MpServer', x=-121.31, y=20.00, z=173.69], EntitySkeleton['Skeleton'/2312, l='MpServer', x=-121.69, y=20.00, z=180.09], EntitySkeleton['Skeleton'/2313, l='MpServer', x=-122.50, y=20.00, z=171.50], EntitySkeleton['Skeleton'/2314, l='MpServer', x=-121.53, y=20.00, z=174.56], EntityCreeper['Creeper'/2319, l='MpServer', x=-90.50, y=46.00, z=227.50], EntityCreeper['Creeper'/281, l='MpServer', x=-56.50, y=32.00, z=215.50], EntityPlayerSP['Mutantoe'/277, l='MpServer', x=-42.50, y=78.36, z=241.50], EntityEnderman['Enderman'/333, l='MpServer', x=-32.50, y=20.00, z=200.50], EntitySquid['Squid'/372, l='MpServer', x=-58.00, y=60.56, z=287.25], EntitySquid['Squid'/373, l='MpServer', x=-54.66, y=59.56, z=293.03], EntitySquid['Squid'/374, l='MpServer', x=-57.00, y=61.44, z=297.03], EntitySquid['Squid'/375, l='MpServer', x=-50.50, y=59.53, z=298.44], EntitySkeleton['Skeleton'/391, l='MpServer', x=3.50, y=18.00, z=233.50], EntityBat['Bat'/416, l='MpServer', x=35.25, y=17.09, z=282.31], EntityZombie['Zombie'/453, l='MpServer', x=-118.16, y=21.00, z=194.50], EntityItem['item.tile.gravel'/2627, l='MpServer', x=-42.38, y=39.88, z=299.75], EntityBat['Bat'/596, l='MpServer', x=-118.42, y=23.05, z=190.61], EntityBat['Bat'/597, l='MpServer', x=-111.21, y=22.94, z=188.54], EntityBat['Bat'/598, l='MpServer', x=-111.16, y=25.24, z=192.78], EntityBat['Bat'/600, l='MpServer', x=-49.97, y=35.28, z=314.24], EntityBat['Bat'/601, l='MpServer', x=-39.05, y=35.15, z=317.19], EntityBat['Bat'/604, l='MpServer', x=-44.48, y=37.08, z=312.69], EntityBat['Bat'/606, l='MpServer', x=-41.71, y=35.46, z=314.16], EntityBat['Bat'/620, l='MpServer', x=29.48, y=46.85, z=188.03], EntityZombie['Zombie'/793, l='MpServer', x=-17.50, y=40.00, z=171.50], EntityZombie['Zombie'/807, l='MpServer', x=-103.50, y=27.00, z=200.50], EntityCreeper['Creeper'/836, l='MpServer', x=37.50, y=17.00, z=280.50], EntityWitch['Witch'/845, l='MpServer', x=-22.50, y=24.00, z=165.50], EntityWitch['Witch'/846, l='MpServer', x=-22.50, y=24.00, z=162.50], EntityFallingBlock['Falling Block'/5018, l='MpServer', x=-23.50, y=9.04, z=242.50], EntityFallingBlock['Falling Block'/5053, l='MpServer', x=27.50, y=23.06, z=376.50], EntityFallingBlock['Falling Block'/5055, l='MpServer', x=26.50, y=23.06, z=375.50], EntityFallingBlock['Falling Block'/5056, l='MpServer', x=26.50, y=23.06, z=376.50], EntityFallingBlock['Falling Block'/5057, l='MpServer', x=25.50, y=23.06, z=374.50], EntityFallingBlock['Falling Block'/5058, l='MpServer', x=25.50, y=22.06, z=373.50], EntityFallingBlock['Falling Block'/5059, l='MpServer', x=25.50, y=23.06, z=375.50], EntityFallingBlock['Falling Block'/5060, l='MpServer', x=24.50, y=23.06, z=374.50], EntityFallingBlock['Falling Block'/5061, l='MpServer', x=24.50, y=22.06, z=373.50], EntityFallingBlock['Falling Block'/5062, l='MpServer', x=24.50, y=23.06, z=375.50], EntitySkeleton['Skeleton'/1035, l='MpServer', x=17.50, y=64.00, z=185.50], EntityEnderman['Enderman'/1162, l='MpServer', x=34.50, y=35.00, z=210.50], EntityEnderman['Enderman'/1163, l='MpServer', x=36.63, y=32.00, z=205.72], EntityZombie['Zombie'/1219, l='MpServer', x=-10.50, y=14.00, z=166.50], EntityCreeper['Creeper'/1399, l='MpServer', x=36.03, y=45.00, z=197.25], EntityFallingBlock['Falling Block'/5512, l='MpServer', x=25.50, y=24.20, z=373.50], EntityFallingBlock['Falling Block'/5513, l='MpServer', x=24.50, y=24.20, z=373.50], EntitySkeleton['Skeleton'/1546, l='MpServer', x=-45.50, y=19.00, z=212.50], EntitySkeleton['Skeleton'/1547, l='MpServer', x=-44.50, y=19.00, z=210.50], EntityZombie['Zombie'/1548, l='MpServer', x=-0.50, y=38.00, z=221.50], EntityZombie['Zombie'/1549, l='MpServer', x=-1.50, y=38.00, z=222.50], EntityCreeper['Creeper'/1550, l='MpServer', x=2.50, y=38.00, z=227.50], EntityZombie['Zombie'/1583, l='MpServer', x=-55.50, y=30.00, z=299.50], EntityZombie['Zombie'/1584, l='MpServer', x=-56.50, y=30.00, z=302.50], EntityCreeper['Creeper'/1623, l='MpServer', x=5.50, y=26.00, z=267.50], EntitySkeleton['Skeleton'/1625, l='MpServer', x=-0.50, y=26.00, z=266.50], EntityAntimatter['entity.AMC.Antimatter.name'/5863, l='MpServer', x=-42.08, y=79.70, z=242.90], EntitySpider['Spider'/1827, l='MpServer', x=-19.50, y=23.00, z=197.50], EntitySkeleton['Skeleton'/1863, l='MpServer', x=22.50, y=27.00, z=234.50], EntityZombie['Zombie'/1864, l='MpServer', x=21.50, y=27.00, z=235.50], EntityZombie['Zombie'/1865, l='MpServer', x=22.50, y=27.00, z=233.50], EntityCreeper['Creeper'/1950, l='MpServer', x=13.50, y=41.00, z=229.50], EntitySquid['Squid'/1972, l='MpServer', x=-44.41, y=61.25, z=285.72], EntitySquid['Squid'/1973, l='MpServer', x=-49.50, y=61.59, z=294.59], EntitySquid['Squid'/1974, l='MpServer', x=-51.25, y=61.56, z=291.09], EntitySquid['Squid'/1975, l='MpServer', x=-52.47, y=62.47, z=290.03], EntitySquid['Squid'/1976, l='MpServer', x=-57.25, y=59.84, z=302.22], EntitySquid['Squid'/1977, l='MpServer', x=-59.69, y=56.22, z=303.22], EntitySquid['Squid'/1978, l='MpServer', x=-66.09, y=57.00, z=301.47]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:392)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2600)
at net.minecraft.client.Minecraft.run(Minecraft.java:405)
at net.minecraft.client.main.Main.main(Main.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:85)
at GradleStart.main(GradleStart.java:45)

-- System Details --
Details:
Minecraft Version: 1.8
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.8.0_31, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 720414160 bytes (687 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
FML: MCP v9.10 FML v8.0.37.1329 Minecraft Forge 11.14.1.1329 4 mods loaded, 4 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
FML{8.0.37.1329} [Forge Mod Loader] (forgeSrc-1.8-11.14.1.1329.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Forge{11.14.1.1329} [Minecraft Forge] (forgeSrc-1.8-11.14.1.1329.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
AMC{1.0} [Anti-Minecraft] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
Loaded coremods (and transformers): 
Launched Version: 1.8
LWJGL: 2.9.1
OpenGL: Intel(R) HD Graphics 3000 GL version 3.1.0 - Build 9.17.10.3347, Intel
GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

Using VBOs: No
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: []
Current Language: English (US)
Profiler Position: N/A (disabled)
[17:13:28] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:660]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\Joe\Documents\GitHub\Anti-Minecraft\eclipse\.\crash-reports\crash-2015-02-27_17.13.28-client.txt
AL lib: (EE) alc_cleanup: 1 device not closed
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

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

    • Version 1.19 - Forge 41.0.63 I want to create a wolf entity that I can ride, so far it seems to be working, but the problem is that when I get on the wolf, I can’t control it. I then discovered that the issue is that the server doesn’t detect that I’m riding the wolf, so I’m struggling with synchronization. However, it seems to not be working properly. As I understand it, the server receives the packet but doesn’t register it correctly. I’m a bit new to Java, and I’ll try to provide all the relevant code and prints *The comments and prints are translated by chatgpt since they were originally in Spanish* Thank you very much in advance No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. MountableWolfEntity package com.vals.valscraft.entity; import com.vals.valscraft.network.MountSyncPacket; import com.vals.valscraft.network.NetworkHandler; import net.minecraft.client.Minecraft; import net.minecraft.network.syncher.EntityDataAccessor; import net.minecraft.network.syncher.EntityDataSerializers; import net.minecraft.network.syncher.SynchedEntityData; import net.minecraft.server.MinecraftServer; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.Mob; import net.minecraft.world.entity.ai.attributes.AttributeSupplier; import net.minecraft.world.entity.ai.attributes.Attributes; import net.minecraft.world.entity.animal.Wolf; import net.minecraft.world.entity.player.Player; import net.minecraft.world.entity.Entity; import net.minecraft.world.InteractionHand; import net.minecraft.world.InteractionResult; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.Items; import net.minecraft.world.level.Level; import net.minecraft.world.phys.Vec3; import net.minecraftforge.event.TickEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.network.PacketDistributor; public class MountableWolfEntity extends Wolf { private boolean hasSaddle; private static final EntityDataAccessor<Byte> DATA_ID_FLAGS = SynchedEntityData.defineId(MountableWolfEntity.class, EntityDataSerializers.BYTE); public MountableWolfEntity(EntityType<? extends Wolf> type, Level level) { super(type, level); this.hasSaddle = false; } @Override protected void defineSynchedData() { super.defineSynchedData(); this.entityData.define(DATA_ID_FLAGS, (byte)0); } public static AttributeSupplier.Builder createAttributes() { return Wolf.createAttributes() .add(Attributes.MAX_HEALTH, 20.0) .add(Attributes.MOVEMENT_SPEED, 0.3); } @Override public InteractionResult mobInteract(Player player, InteractionHand hand) { ItemStack itemstack = player.getItemInHand(hand); if (itemstack.getItem() == Items.SADDLE && !this.hasSaddle()) { if (!player.isCreative()) { itemstack.shrink(1); } this.setSaddle(true); return InteractionResult.SUCCESS; } else if (!level.isClientSide && this.hasSaddle()) { player.startRiding(this); MountSyncPacket packet = new MountSyncPacket(true); // 'true' means the player is mounted NetworkHandler.CHANNEL.sendToServer(packet); // Ensure the server handles the packet return InteractionResult.SUCCESS; } return InteractionResult.PASS; } @Override public void travel(Vec3 travelVector) { if (this.isVehicle() && this.getControllingPassenger() instanceof Player) { System.out.println("The wolf has a passenger."); System.out.println("The passenger is a player."); Player player = (Player) this.getControllingPassenger(); // Ensure the player is the controller this.setYRot(player.getYRot()); this.yRotO = this.getYRot(); this.setXRot(player.getXRot() * 0.5F); this.setRot(this.getYRot(), this.getXRot()); this.yBodyRot = this.getYRot(); this.yHeadRot = this.yBodyRot; float forward = player.zza; float strafe = player.xxa; if (forward <= 0.0F) { forward *= 0.25F; } this.flyingSpeed = this.getSpeed() * 0.1F; this.setSpeed((float) this.getAttributeValue(Attributes.MOVEMENT_SPEED) * 1.5F); this.setDeltaMovement(new Vec3(strafe, travelVector.y, forward).scale(this.getSpeed())); this.calculateEntityAnimation(this, false); } else { // The wolf does not have a passenger or the passenger is not a player System.out.println("No player is mounted, or the passenger is not a player."); super.travel(travelVector); } } public boolean hasSaddle() { return this.hasSaddle; } public void setSaddle(boolean hasSaddle) { this.hasSaddle = hasSaddle; } @Override protected void dropEquipment() { super.dropEquipment(); if (this.hasSaddle()) { this.spawnAtLocation(Items.SADDLE); this.setSaddle(false); } } @SubscribeEvent public static void onServerTick(TickEvent.ServerTickEvent event) { if (event.phase == TickEvent.Phase.START) { MinecraftServer server = net.minecraftforge.server.ServerLifecycleHooks.getCurrentServer(); if (server != null) { for (ServerPlayer player : server.getPlayerList().getPlayers()) { if (player.isPassenger() && player.getVehicle() instanceof MountableWolfEntity) { MountableWolfEntity wolf = (MountableWolfEntity) player.getVehicle(); System.out.println("Tick: " + player.getName().getString() + " is correctly mounted on " + wolf); } } } } } private boolean lastMountedState = false; @Override public void tick() { super.tick(); if (!this.level.isClientSide) { // Only on the server boolean isMounted = this.isVehicle() && this.getControllingPassenger() instanceof Player; // Only print if the state changed if (isMounted != lastMountedState) { if (isMounted) { Player player = (Player) this.getControllingPassenger(); // Verify the passenger is a player System.out.println("Server: Player " + player.getName().getString() + " is now mounted."); } else { System.out.println("Server: The wolf no longer has a passenger."); } lastMountedState = isMounted; } } } @Override public void addPassenger(Entity passenger) { super.addPassenger(passenger); if (passenger instanceof Player) { Player player = (Player) passenger; if (!this.level.isClientSide && player instanceof ServerPlayer) { // Send the packet to the server to indicate the player is mounted NetworkHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayer) player), new MountSyncPacket(true)); } } } @Override public void removePassenger(Entity passenger) { super.removePassenger(passenger); if (passenger instanceof Player) { Player player = (Player) passenger; if (!this.level.isClientSide && player instanceof ServerPlayer) { // Send the packet to the server to indicate the player is no longer mounted NetworkHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayer) player), new MountSyncPacket(false)); } } } @Override public boolean isControlledByLocalInstance() { Entity entity = this.getControllingPassenger(); return entity instanceof Player; } @Override public void positionRider(Entity passenger) { if (this.hasPassenger(passenger)) { double xOffset = Math.cos(Math.toRadians(this.getYRot() + 90)) * 0.4; double zOffset = Math.sin(Math.toRadians(this.getYRot() + 90)) * 0.4; passenger.setPos(this.getX() + xOffset, this.getY() + this.getPassengersRidingOffset() + passenger.getMyRidingOffset(), this.getZ() + zOffset); } } } MountSyncPacket package com.vals.valscraft.network; import com.vals.valscraft.entity.MountableWolfEntity; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.server.level.ServerLevel; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.player.Player; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class MountSyncPacket { private final boolean isMounted; public MountSyncPacket(boolean isMounted) { this.isMounted = isMounted; } public void encode(FriendlyByteBuf buffer) { buffer.writeBoolean(isMounted); } public static MountSyncPacket decode(FriendlyByteBuf buffer) { return new MountSyncPacket(buffer.readBoolean()); } public void handle(NetworkEvent.Context context) { context.enqueueWork(() -> { ServerPlayer player = context.getSender(); // Get the player from the context if (player != null) { // Verifies if the player has dismounted if (!isMounted) { Entity vehicle = player.getVehicle(); if (vehicle instanceof MountableWolfEntity wolf) { // Logic to remove the player as a passenger wolf.removePassenger(player); System.out.println("Server: Player " + player.getName().getString() + " is no longer mounted."); } } } }); context.setPacketHandled(true); // Marks the packet as handled } } networkHandler package com.vals.valscraft.network; import com.vals.valscraft.valscraft; import net.minecraft.resources.ResourceLocation; import net.minecraftforge.network.NetworkRegistry; import net.minecraftforge.network.simple.SimpleChannel; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class NetworkHandler { private static final String PROTOCOL_VERSION = "1"; public static final SimpleChannel CHANNEL = NetworkRegistry.newSimpleChannel( new ResourceLocation(valscraft.MODID, "main"), () -> PROTOCOL_VERSION, PROTOCOL_VERSION::equals, PROTOCOL_VERSION::equals ); public static void init() { int packetId = 0; // Register the mount synchronization packet CHANNEL.registerMessage( packetId++, MountSyncPacket.class, MountSyncPacket::encode, MountSyncPacket::decode, (msg, context) -> msg.handle(context.get()) // Get the context with context.get() ); } }  
    • Do you use features of inventory profiles next (ipnext) or is there a change without it?
    • Remove rubidium - you are already using embeddium, which is a fork of rubidium
  • Topics

×
×
  • Create New...

Important Information

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