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

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

package net.minecraft.server;

import java.io.IOException;

public class PacketPlayOutEntityDestroy implements Packet {
	
	private int[] a;
	
	public PacketPlayOutEntityDestroy() {
	}
	
	public PacketPlayOutEntityDestroy(int... aint) {
		this.a = aint;
	}
	
	public void a(PacketDataSerializer packetdataserializer) throws IOException {
		this.a = new int[packetdataserializer.e()];
		
		for (int i = 0; i < this.a.length; ++i) {
			this.a[i] = packetdataserializer.e();
		}
		
	}
	
	public void b(PacketDataSerializer packetdataserializer) throws IOException {
		packetdataserializer.b(this.a.length);
		
		for (int j : this.a) {
			packetdataserializer.b(j);
		}
		
	}
	
	public void a(PacketListenerPlayOut packetlistenerplayout) {
		packetlistenerplayout.a(this);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy