public override void writePacketData(DataOutputStream dataoutputstream) { dataoutputstream.writeFloat(field_22035_a); dataoutputstream.writeFloat(field_22034_b); dataoutputstream.writeFloat(field_22037_e); dataoutputstream.writeFloat(field_22036_f); dataoutputstream.writeBoolean(field_22039_c); dataoutputstream.writeBoolean(field_22038_d); }
public override void writePacketData(DataOutputStream dataoutputstream) { dataoutputstream.writeDouble(xPosition); dataoutputstream.writeDouble(yPosition); dataoutputstream.writeDouble(stance); dataoutputstream.writeDouble(zPosition); dataoutputstream.writeFloat(yaw); dataoutputstream.writeFloat(pitch); base.writePacketData(dataoutputstream); }
public override void writePacketData(DataOutputStream dataoutputstream) { dataoutputstream.writeDouble(explosionX); dataoutputstream.writeDouble(explosionY); dataoutputstream.writeDouble(explosionZ); dataoutputstream.writeFloat(explosionSize); dataoutputstream.writeInt(destroyedBlockPositions.size()); var i = (int) explosionX; var j = (int) explosionY; var k = (int) explosionZ; int j1; for (Iterator iterator = destroyedBlockPositions.iterator(); iterator.hasNext(); dataoutputstream.writeByte(j1)) { var chunkposition = (ChunkPosition) iterator.next(); int l = chunkposition.x - i; int i1 = chunkposition.y - j; j1 = chunkposition.z - k; dataoutputstream.writeByte(l); dataoutputstream.writeByte(i1); } }
public override void writePacketData(DataOutputStream dataoutputstream) { dataoutputstream.writeFloat(yaw); dataoutputstream.writeFloat(pitch); base.writePacketData(dataoutputstream); }
private static void writeWatchableObject(DataOutputStream dataoutputstream, WatchableObject watchableobject) { int i = (watchableobject.getObjectType() << 5 | watchableobject.getDataValueId() & 0x1f) & 0xff; dataoutputstream.writeByte(i); switch (watchableobject.getObjectType()) { case 0: // '\0' try { dataoutputstream.writeByte(((Byte) watchableobject.getObject()).byteValue()); } catch { dataoutputstream.writeByte((sbyte) (watchableobject.getObject())); } break; case 1: // '\001' dataoutputstream.writeShort(((Short) watchableobject.getObject()).shortValue()); break; case 2: // '\002' dataoutputstream.writeInt(((Integer) watchableobject.getObject()).intValue()); break; case 3: // '\003' dataoutputstream.writeFloat(((Float) watchableobject.getObject()).floatValue()); break; case 4: // '\004' dataoutputstream.writeUTF((string) watchableobject.getObject()); break; case 5: // '\005' var itemstack = (ItemStack) watchableobject.getObject(); dataoutputstream.writeShort(itemstack.getItem().shiftedIndex); dataoutputstream.writeByte(itemstack.stackSize); dataoutputstream.writeShort(itemstack.getItemDamage()); // fall through (cant.. c# ...) var chunkcoordinates2 = (ChunkCoordinates) watchableobject.getObject(); dataoutputstream.writeInt(chunkcoordinates2.posX); dataoutputstream.writeInt(chunkcoordinates2.posY); dataoutputstream.writeInt(chunkcoordinates2.posZ); break; case 6: // '\006' var chunkcoordinates = (ChunkCoordinates) watchableobject.getObject(); dataoutputstream.writeInt(chunkcoordinates.posX); dataoutputstream.writeInt(chunkcoordinates.posY); dataoutputstream.writeInt(chunkcoordinates.posZ); break; } }