effect cleanup
This commit is contained in:
parent
319e27870f
commit
936154e5ce
35 changed files with 1182 additions and 1741 deletions
|
@ -171,7 +171,7 @@ public class BlockRedstoneOre extends Block
|
|||
|
||||
if (d1 < (double)pos.getX() || d1 > (double)(pos.getX() + 1) || d2 < 0.0D || d2 > (double)(pos.getY() + 1) || d3 < (double)pos.getZ() || d3 > (double)(pos.getZ() + 1))
|
||||
{
|
||||
worldIn.spawnParticle(ParticleType.DUST, d1, d2, d3, 0.0D, 0.0D, 0.0D);
|
||||
worldIn.spawnParticle(ParticleType.DUST, d1, d2, d3, 1.0D, 0.0D, 0.0D);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -126,7 +126,7 @@ public class BlockRedstoneRepeater extends BlockRedstoneDiode
|
|||
f = f / 16.0F;
|
||||
double d3 = (double)(f * (float)enumfacing.getFrontOffsetX());
|
||||
double d4 = (double)(f * (float)enumfacing.getFrontOffsetZ());
|
||||
worldIn.spawnParticle(ParticleType.DUST, d0 + d3, d1, d2 + d4, 0.0D, 0.0D, 0.0D);
|
||||
worldIn.spawnParticle(ParticleType.DUST, d0 + d3, d1, d2 + d4, 1.0D, 0.0D, 0.0D);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -206,7 +206,7 @@ public class BlockRedstoneTorch extends BlockTorch
|
|||
d2 += 0.27D * (double)enumfacing1.getFrontOffsetZ();
|
||||
}
|
||||
|
||||
worldIn.spawnParticle(ParticleType.DUST, d0, d1, d2, 0.0D, 0.0D, 0.0D);
|
||||
worldIn.spawnParticle(ParticleType.DUST, d0, d1, d2, 1.0D, 0.0D, 0.0D);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -18,17 +18,15 @@ public class SPacketParticles implements Packet<IClientPlayer>
|
|||
private float zOffset;
|
||||
private float particleSpeed;
|
||||
private int particleCount;
|
||||
private boolean longDistance;
|
||||
private int particleArgument;
|
||||
|
||||
public SPacketParticles()
|
||||
{
|
||||
}
|
||||
|
||||
public SPacketParticles(ParticleType particleTypeIn, boolean longDistanceIn, float x, float y, float z, float xOffsetIn, float yOffset, float zOffset, float particleSpeedIn, int particleCountIn, int particleArgumentIn)
|
||||
public SPacketParticles(ParticleType particleTypeIn, float x, float y, float z, float xOffsetIn, float yOffset, float zOffset, float particleSpeedIn, int particleCountIn, int particleArgumentIn)
|
||||
{
|
||||
this.particleType = particleTypeIn;
|
||||
this.longDistance = longDistanceIn;
|
||||
this.xCoord = x;
|
||||
this.yCoord = y;
|
||||
this.zCoord = z;
|
||||
|
@ -46,7 +44,6 @@ public class SPacketParticles implements Packet<IClientPlayer>
|
|||
public void readPacketData(PacketBuffer buf) throws IOException
|
||||
{
|
||||
this.particleType = buf.readEnumValue(ParticleType.class);
|
||||
this.longDistance = buf.readBoolean();
|
||||
this.xCoord = buf.readFloat();
|
||||
this.yCoord = buf.readFloat();
|
||||
this.zCoord = buf.readFloat();
|
||||
|
@ -64,7 +61,6 @@ public class SPacketParticles implements Packet<IClientPlayer>
|
|||
public void writePacketData(PacketBuffer buf) throws IOException
|
||||
{
|
||||
buf.writeEnumValue(this.particleType);
|
||||
buf.writeBoolean(this.longDistance);
|
||||
buf.writeFloat(this.xCoord);
|
||||
buf.writeFloat(this.yCoord);
|
||||
buf.writeFloat(this.zCoord);
|
||||
|
@ -81,11 +77,6 @@ public class SPacketParticles implements Packet<IClientPlayer>
|
|||
return this.particleType;
|
||||
}
|
||||
|
||||
public boolean isLongDistance()
|
||||
{
|
||||
return this.longDistance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the x coordinate to spawn the particle.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue