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

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

package net.minecraft.server;

import java.io.IOException;

public class PacketPlayInResourcePackStatus implements Packet {
	
	public PacketPlayInResourcePackStatus.EnumResourcePackStatus b; // PAIL: private -> public, rename: status
	private String a;
	
	public PacketPlayInResourcePackStatus() {
	}
	
	public void a(PacketDataSerializer packetdataserializer) throws IOException {
		this.a = packetdataserializer.c(40);
		this.b = packetdataserializer.a(EnumResourcePackStatus.class);
	}
	
	public void b(PacketDataSerializer packetdataserializer) throws IOException {
		packetdataserializer.a(this.a);
		packetdataserializer.a(this.b);
	}
	
	public void a(PacketListenerPlayIn packetlistenerplayin) {
		packetlistenerplayin.a(this);
	}
	
	public enum EnumResourcePackStatus {
		
		SUCCESSFULLY_LOADED, DECLINED, FAILED_DOWNLOAD, ACCEPTED;
		
		EnumResourcePackStatus() {
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy