Everything posted by Differentiation
- 
	
		
		ClientCommandHandler breaking when attempting to register client command
		
		[Message Deleted]
 - 
	
		
		[SOLVED] [1.11.2] EntityJoinWorldEvent fires multiple times for the same entity
		
		EntityEvent fires for any updates with entities. Yes, you should...
 - 
	
		
		[1.10.2] [SOLVED] Errors that don't crash the game or do anything?
		
		Just about figured that out
 - 
	
		
		[1.7.2] [Solved] How to override/remove vanilla recipes
		
		@diesieben07 This thread is old...
 - 
	
		
		[1.10.2] Difference between randoms?
		
		Hey! I was curious, what is the difference between World::rand and Random rand = new Random();? And which is better to use? Thanks!
 - 
	
		
		[1.10.2] [SOLVED] Errors that don't crash the game or do anything?
		
		Yeah... or just add the @Nonnull annotation
 - 
	
		
		[1.10.2] [SOLVED] Errors that don't crash the game or do anything?
		
		By the way, can you catch NullPointerException? Just curious. ItemStack stack = null; try { hoe.damageItem(1, playerIn); } catch (NullPointerException exception) { System.out.println("NullPointerException caught!"); }
 - 
	
		
		[1.10.2] [SOLVED] Errors that don't crash the game or do anything?
		
		Thanks! Solved
 - 
	
		
		[1.10.2] [SOLVED] Errors that don't crash the game or do anything?
		
		Hey! So every time I run the Java Application (Minecraft Client), it gives me the following error which doesn't crash the game but concerns me a lot. Error: https://pastebin.com/j0ane0J6 Is this important or do I just leave it? Thanks!
 - 
	
		
		How to disable attack animation
		
		
- How to disable attack animation
 Are you positive that you cancelled the event CLIENT-SIDE so that none of that renders?- [1.10.2] [SOLVED] Checking for the Current Running Logical Side?
 I'll take a look! Thanks!- [1.10.2] [SOLVED] Checking for the Current Running Logical Side?
 Is there a documentary I can learn from? I use Eclipse and I tried the debug lines, but I didn't know how to further continue...- [1.10.2] [SOLVED] Checking for the Current Running Logical Side?
 Yes, log the side to the console so that I could visually see what current side is running. I know I can make the if statement more condensed and shorter that way, but are there any other methods?- [1.10.2] [SOLVED] Checking for the Current Running Logical Side?
 Hey, I need to test for the running side on certain methods or blocks of methods all the time to keep me informed. So I made a method (which I'm currently using) which looks like this: public void getSide(World worldIn) { if (worldIn.isRemote) { Log.info("CLIENT"); } if (!worldIn.isRemote) { Log.info("SERVER"); } } Is there a more enhanced way to accomplish this? Any suggestions are welcome. Thanks!- How to perform an operation on the server side through the Event Handler?
 True!- How to perform an operation on the server side through the Event Handler?
 you don't have to make that static though.- Minecraft freezing when I join a server
 1. Post the FML Log to get help. 2. You shouldn't be using ProjectL and OldAnimations mod. Use Orange Marshall's 1.7 Animations mod instead.- How to perform an operation on the server side through the Event Handler?
 I can relate. @Greyscail, your code is very mixed between sides. I would see this documentation by Forge and this video by MineMaarten, both of which explain sides in detail. But please actually read the documentation and watch the video. When I only started modding it took me a good chunk of time and effort to understand sides. I'm finished helping here! Until next time! ~Differentiation- How to perform an operation on the server side through the Event Handler?
 I gotta go to sleep, I'll help more tomorrow! Try to figure it out while I'm gone!- How to perform an operation on the server side through the Event Handler?
 For example: public class PacketSpawnParticle extends LocationDoublePacket<PacketSpawnParticle>{ private double dx, dy, dz; private int particleId; public PacketSpawnParticle(){} public PacketSpawnParticle(EnumParticleTypes particle, double x, double y, double z, double dx, double dy, double dz){ super(x, y, z); particleId = particle.ordinal(); this.dx = dx; this.dy = dy; this.dz = dz; } @Override public void toBytes(ByteBuf buffer){ super.toBytes(buffer); buffer.writeInt(particleId); buffer.writeDouble(dx); buffer.writeDouble(dy); buffer.writeDouble(dz); } @Override public void fromBytes(ByteBuf buffer){ super.fromBytes(buffer); particleId = buffer.readInt(); dx = buffer.readDouble(); dy = buffer.readDouble(); dz = buffer.readDouble(); } @Override public void handleClientSide(PacketSpawnParticle message, EntityPlayer player){ player.worldObj.spawnParticle(EnumParticleTypes.values()[message.particleId], message.x, message.y, message.z, message.dx, message.dy, message.dz); } @Override public void handleServerSide(PacketSpawnParticle message, EntityPlayer player){} }- How to perform an operation on the server side through the Event Handler?
 It doesn't have to be integers. It can be booleans and other values...- How to perform an operation on the server side through the Event Handler?
 ya... you only need to notify the server of that boolean statement at that specific time. This can easily be accomplished via player capabilities.- How to perform an operation on the server side through the Event Handler?
 ONLY this is supposed to be sent to the server, NOT the whole method.- How to perform an operation on the server side through the Event Handler?
 It's a bit ambiguous, especially for me, being an old man and all, skimming through these large chunks of code. I'll need the help of others. @jabelar, please. @Draco18s - How to disable attack animation
 
IPS spam blocked by CleanTalk.
									
    
    
								
								
							Important Information
By using this site, you agree to our Terms of Use.