Differentiation
Members-
Posts
606 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Differentiation
-
[1.7.2] [Solved] How to override/remove vanilla recipes
Differentiation replied to SackCastellon's topic in Modder Support
@diesieben07 This thread is old... -
Hey! I was curious, what is the difference between World::rand and Random rand = new Random();? And which is better to use? Thanks!
-
-
Are you positive that you cancelled the event CLIENT-SIDE so that none of that renders?
-
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!
-
Minecraft freezing when I join a server
Differentiation replied to veyzur's topic in Support & Bug Reports
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. -
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
-
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){} }