All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minecraft.server.PacketPlayOutBlockChange Maven / Gradle / Ivy

package net.minecraft.server;

import java.io.IOException;

public class PacketPlayOutBlockChange implements Packet {
	
	public IBlockData block; // CraftBukkit - public
	private BlockPosition a;
	
	public PacketPlayOutBlockChange() {
	}
	
	public PacketPlayOutBlockChange(World world, BlockPosition blockposition) {
		this.a = blockposition;
		this.block = world.getType(blockposition);
	}
	
	public void a(PacketDataSerializer packetdataserializer) throws IOException {
		this.a = packetdataserializer.c();
		this.block = Block.d.a(packetdataserializer.e());
	}
	
	public void b(PacketDataSerializer packetdataserializer) throws IOException {
		packetdataserializer.a(this.a);
		packetdataserializer.b(Block.d.b(this.block));
	}
	
	public void a(PacketListenerPlayOut packetlistenerplayout) {
		packetlistenerplayout.a(this);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy