use of net.minecraft.server.v1_14_R1.PacketPlayOutBlockChange in project TheAPI by TheDevTec.
the class v1_9_R1 method packetBlockChange.
@Override
public Object packetBlockChange(World world, Position position) {
PacketPlayOutBlockChange packet = new PacketPlayOutBlockChange();
packet.block = (IBlockData) position.getIBlockData();
try {
pos.set(packet, position.getBlockPosition());
} catch (Exception e) {
}
return packet;
}
use of net.minecraft.server.v1_14_R1.PacketPlayOutBlockChange in project TheAPI by TheDevTec.
the class v1_11_R1 method packetBlockChange.
@Override
public Object packetBlockChange(World world, Position position) {
PacketPlayOutBlockChange packet = new PacketPlayOutBlockChange();
packet.block = (IBlockData) position.getIBlockData();
try {
pos.set(packet, position.getBlockPosition());
} catch (Exception e) {
}
return packet;
}
use of net.minecraft.server.v1_14_R1.PacketPlayOutBlockChange in project TheAPI by TheDevTec.
the class v1_16_R1 method packetBlockChange.
@Override
public Object packetBlockChange(World world, int x, int y, int z) {
PacketPlayOutBlockChange packet = new PacketPlayOutBlockChange();
packet.block = (IBlockData) getBlock(getChunk(world, x >> 4, z >> 4), x, y, z);
try {
pos.set(packet, new BlockPosition(x, y, z));
} catch (Exception e) {
}
return packet;
}
use of net.minecraft.server.v1_14_R1.PacketPlayOutBlockChange in project TheAPI by TheDevTec.
the class v1_14_R1 method packetBlockChange.
@Override
public Object packetBlockChange(World world, int x, int y, int z) {
PacketPlayOutBlockChange packet = new PacketPlayOutBlockChange();
packet.block = (IBlockData) getBlock(getChunk(world, x >> 4, z >> 4), x, y, z);
try {
pos.set(packet, new BlockPosition(x, y, z));
} catch (Exception e) {
}
return packet;
}
use of net.minecraft.server.v1_14_R1.PacketPlayOutBlockChange in project TheAPI by TheDevTec.
the class v1_12_R1 method packetBlockChange.
@Override
public Object packetBlockChange(World world, int x, int y, int z) {
PacketPlayOutBlockChange packet = new PacketPlayOutBlockChange();
packet.block = (IBlockData) getBlock(getChunk(world, x >> 4, z >> 4), x, y, z);
try {
pos.set(packet, new BlockPosition(x, y, z));
} catch (Exception e) {
}
return packet;
}
Aggregations