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

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

package net.minecraft.server;

import java.io.IOException;

public class PacketPlayOutUpdateTime implements Packet {
	
	private long a;
	private long b;
	
	public PacketPlayOutUpdateTime() {
	}
	
	public PacketPlayOutUpdateTime(long i, long j, boolean flag) {
		this.a = i;
		this.b = j;
		if (!flag) {
			this.b = -this.b;
			if (this.b == 0L) {
				this.b = -1L;
			}
		}
		
	}
	
	public void a(PacketDataSerializer packetdataserializer) throws IOException {
		this.a = packetdataserializer.readLong();
		this.b = packetdataserializer.readLong();
	}
	
	public void b(PacketDataSerializer packetdataserializer) throws IOException {
		packetdataserializer.writeLong(this.a);
		packetdataserializer.writeLong(this.b);
	}
	
	public void a(PacketListenerPlayOut packetlistenerplayout) {
		packetlistenerplayout.a(this);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy