Search in sources :

Example 21 with PacketPlayOutBlockChange

use of net.minecraft.server.v1_8_R1.PacketPlayOutBlockChange in project TheAPI by TheDevTec.

the class v1_13_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;
}
Also used : PacketPlayOutBlockChange(net.minecraft.server.v1_13_R1.PacketPlayOutBlockChange)

Example 22 with PacketPlayOutBlockChange

use of net.minecraft.server.v1_8_R1.PacketPlayOutBlockChange in project TheAPI by TheDevTec.

the class v1_8_R3 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;
}
Also used : BlockPosition(net.minecraft.server.v1_8_R3.BlockPosition) PacketPlayOutBlockChange(net.minecraft.server.v1_8_R3.PacketPlayOutBlockChange)

Example 23 with PacketPlayOutBlockChange

use of net.minecraft.server.v1_8_R1.PacketPlayOutBlockChange in project TheAPI by TheDevTec.

the class v1_8_R2 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;
}
Also used : BlockPosition(net.minecraft.server.v1_8_R2.BlockPosition) PacketPlayOutBlockChange(net.minecraft.server.v1_8_R2.PacketPlayOutBlockChange)

Example 24 with PacketPlayOutBlockChange

use of net.minecraft.server.v1_8_R1.PacketPlayOutBlockChange in project TheAPI by TheDevTec.

the class v1_8_R3 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;
}
Also used : PacketPlayOutBlockChange(net.minecraft.server.v1_8_R3.PacketPlayOutBlockChange)

Example 25 with PacketPlayOutBlockChange

use of net.minecraft.server.v1_8_R1.PacketPlayOutBlockChange in project TheAPI by TheDevTec.

the class v1_7_R4 method packetBlockChange.

@Override
public Object packetBlockChange(World world, int x, int y, int z) {
    PacketPlayOutBlockChange packet = new PacketPlayOutBlockChange();
    Object chunk = getChunk(world, x >> 4, z >> 4);
    packet.data = getData(chunk, x, y, z);
    packet.block = (Block) getBlock(chunk, x, y, z);
    try {
        posX.set(packet, x);
        posY.set(packet, y);
        posZ.set(packet, z);
    } catch (Exception e) {
    }
    return packet;
}
Also used : PacketPlayOutBlockChange(net.minecraft.server.v1_7_R4.PacketPlayOutBlockChange)

Aggregations

PacketPlayOutBlockChange (net.minecraft.server.v1_12_R1.PacketPlayOutBlockChange)3 PacketPlayOutBlockChange (net.minecraft.server.v1_15_R1.PacketPlayOutBlockChange)3 PacketPlayOutBlockChange (net.minecraft.server.v1_10_R1.PacketPlayOutBlockChange)2 PacketPlayOutBlockChange (net.minecraft.server.v1_11_R1.PacketPlayOutBlockChange)2 BlockPosition (net.minecraft.server.v1_12_R1.BlockPosition)2 PacketPlayOutBlockChange (net.minecraft.server.v1_13_R1.PacketPlayOutBlockChange)2 PacketPlayOutBlockChange (net.minecraft.server.v1_13_R2.PacketPlayOutBlockChange)2 PacketPlayOutBlockChange (net.minecraft.server.v1_14_R1.PacketPlayOutBlockChange)2 BlockPosition (net.minecraft.server.v1_15_R1.BlockPosition)2 PacketPlayOutBlockChange (net.minecraft.server.v1_16_R1.PacketPlayOutBlockChange)2 PacketPlayOutBlockChange (net.minecraft.server.v1_7_R4.PacketPlayOutBlockChange)2 PacketPlayOutBlockChange (net.minecraft.server.v1_8_R1.PacketPlayOutBlockChange)2 PacketPlayOutBlockChange (net.minecraft.server.v1_8_R2.PacketPlayOutBlockChange)2 PacketPlayOutBlockChange (net.minecraft.server.v1_8_R3.PacketPlayOutBlockChange)2 PacketPlayOutBlockChange (net.minecraft.server.v1_9_R1.PacketPlayOutBlockChange)2 BlockData (org.bukkit.block.data.BlockData)2 ParallelUniverse (thpmc.engine.api.world.parallel.ParallelUniverse)2 ParallelWorld (thpmc.engine.api.world.parallel.ParallelWorld)2 BlockPosition (net.minecraft.server.v1_10_R1.BlockPosition)1 BlockPosition (net.minecraft.server.v1_11_R1.BlockPosition)1