Search in sources :

Example 1 with PacketPlayOutRelEntityMoveLook

use of net.minecraft.server.v1_13_R2.PacketPlayOutEntity.PacketPlayOutRelEntityMoveLook in project MechanicsMain by WeaponMechanics.

the class FakeEntity_1_13_R2 method setPositionRotation.

@Override
public void setPositionRotation(short dx, short dy, short dz, byte yaw, byte pitch) {
    PacketPlayOutRelEntityMoveLook packet = new PacketPlayOutRelEntityMoveLook(cache, dx, dy, dz, yaw, pitch, false);
    PacketPlayOutEntityHeadRotation head = new PacketPlayOutEntityHeadRotation(entity, convertYaw(yaw));
    sendPackets(packet, head);
}
Also used : PacketPlayOutRelEntityMoveLook(net.minecraft.server.v1_13_R2.PacketPlayOutEntity.PacketPlayOutRelEntityMoveLook)

Example 2 with PacketPlayOutRelEntityMoveLook

use of net.minecraft.server.v1_13_R2.PacketPlayOutEntity.PacketPlayOutRelEntityMoveLook in project MechanicsMain by WeaponMechanics.

the class FakeEntity_1_10_R1 method setPositionRotation.

@Override
public void setPositionRotation(short dx, short dy, short dz, byte yaw, byte pitch) {
    PacketPlayOutRelEntityMoveLook packet = new PacketPlayOutRelEntityMoveLook(cache, dx, dy, dz, yaw, pitch, false);
    PacketPlayOutEntityHeadRotation head = new PacketPlayOutEntityHeadRotation(entity, convertYaw(yaw));
    sendPackets(packet, head);
}
Also used : PacketPlayOutRelEntityMoveLook(net.minecraft.server.v1_10_R1.PacketPlayOutEntity.PacketPlayOutRelEntityMoveLook)

Example 3 with PacketPlayOutRelEntityMoveLook

use of net.minecraft.server.v1_13_R2.PacketPlayOutEntity.PacketPlayOutRelEntityMoveLook in project MechanicsMain by WeaponMechanics.

the class FakeEntity_1_15_R1 method setPositionRotation.

@Override
public void setPositionRotation(short dx, short dy, short dz, byte yaw, byte pitch) {
    PacketPlayOutRelEntityMoveLook packet = new PacketPlayOutRelEntityMoveLook(cache, dx, dy, dz, yaw, pitch, false);
    PacketPlayOutEntityHeadRotation head = new PacketPlayOutEntityHeadRotation(entity, convertYaw(yaw));
    sendPackets(packet, head);
}
Also used : PacketPlayOutRelEntityMoveLook(net.minecraft.server.v1_15_R1.PacketPlayOutEntity.PacketPlayOutRelEntityMoveLook)

Example 4 with PacketPlayOutRelEntityMoveLook

use of net.minecraft.server.v1_13_R2.PacketPlayOutEntity.PacketPlayOutRelEntityMoveLook in project MechanicsMain by WeaponMechanics.

the class FakeEntity_1_16_R3 method setPositionRotation.

@Override
public void setPositionRotation(short dx, short dy, short dz, byte yaw, byte pitch) {
    PacketPlayOutRelEntityMoveLook packet = new PacketPlayOutRelEntityMoveLook(cache, dx, dy, dz, yaw, pitch, false);
    PacketPlayOutEntityHeadRotation head = new PacketPlayOutEntityHeadRotation(entity, convertYaw(yaw));
    sendPackets(packet, head);
}
Also used : PacketPlayOutRelEntityMoveLook(net.minecraft.server.v1_16_R3.PacketPlayOutEntity.PacketPlayOutRelEntityMoveLook)

Example 5 with PacketPlayOutRelEntityMoveLook

use of net.minecraft.server.v1_13_R2.PacketPlayOutEntity.PacketPlayOutRelEntityMoveLook in project MechanicsMain by WeaponMechanics.

the class FakeEntity_1_11_R1 method setPositionRotation.

@Override
public void setPositionRotation(short dx, short dy, short dz, byte yaw, byte pitch) {
    PacketPlayOutRelEntityMoveLook packet = new PacketPlayOutRelEntityMoveLook(cache, dx, dy, dz, yaw, pitch, false);
    PacketPlayOutEntityHeadRotation head = new PacketPlayOutEntityHeadRotation(entity, convertYaw(yaw));
    sendPackets(packet, head);
}
Also used : PacketPlayOutRelEntityMoveLook(net.minecraft.server.v1_11_R1.PacketPlayOutEntity.PacketPlayOutRelEntityMoveLook)

Aggregations

PacketPlayOutRelEntityMoveLook (net.minecraft.server.v1_16_R3.PacketPlayOutEntity.PacketPlayOutRelEntityMoveLook)2 PacketPlayOutRelEntityMoveLook (net.minecraft.server.v1_10_R1.PacketPlayOutEntity.PacketPlayOutRelEntityMoveLook)1 PacketPlayOutRelEntityMoveLook (net.minecraft.server.v1_11_R1.PacketPlayOutEntity.PacketPlayOutRelEntityMoveLook)1 PacketPlayOutRelEntityMoveLook (net.minecraft.server.v1_12_R1.PacketPlayOutEntity.PacketPlayOutRelEntityMoveLook)1 PacketPlayOutRelEntityMoveLook (net.minecraft.server.v1_13_R2.PacketPlayOutEntity.PacketPlayOutRelEntityMoveLook)1 PacketPlayOutRelEntityMoveLook (net.minecraft.server.v1_14_R1.PacketPlayOutEntity.PacketPlayOutRelEntityMoveLook)1 PacketPlayOutRelEntityMoveLook (net.minecraft.server.v1_15_R1.PacketPlayOutEntity.PacketPlayOutRelEntityMoveLook)1 PacketPlayOutEntityHeadRotation (net.minecraft.server.v1_16_R3.PacketPlayOutEntityHeadRotation)1 PacketPlayOutEntityTeleport (net.minecraft.server.v1_16_R3.PacketPlayOutEntityTeleport)1 PacketPlayOutRelEntityMoveLook (net.minecraft.server.v1_9_R2.PacketPlayOutEntity.PacketPlayOutRelEntityMoveLook)1 Vector (org.bukkit.util.Vector)1