<commit_before>package ch.spacebase.mc.protocol.packet.ingame.server.world;

import java.io.IOException;

import ch.spacebase.packetlib.io.NetInput;
import ch.spacebase.packetlib.io.NetOutput;
import ch.spacebase.packetlib.packet.Packet;

public class ServerBlockBreakAnimPacket implements Packet {

	private int breakerEntityId;
	private int x;
	private int y;
	private int z;
	private Stage stage;
	
	public ServerBlockBreakAnimPacket() {
	}
	
	public ServerBlockBreakAnimPacket(int breakerEntityId, int x, int y, int z, Stage stage) {
		this.breakerEntityId = breakerEntityId;
		this.x = x;
		this.y = y;
		this.z = z;
		this.stage = stage;
	}
	
	public int getBreakerEntityId() {
		return this.breakerEntityId;
	}
	
	public int getX() {
		return this.x;
	}
	
	public int getY() {
		return this.y;
	}
	
	public int getZ() {
		return this.z;
	}
	
	public Stage getStage() {
		return this.stage;
	}

	@Override
	public void read(NetInput in) throws IOException {
		this.breakerEntityId = in.readVarInt();
		this.x = in.readInt();
		this.y = in.readInt();
		this.z = in.readInt();
		this.stage = Stage.values()[in.readByte()];
	}

	@Override
	public void write(NetOutput out) throws IOException {
		out.writeVarInt(this.breakerEntityId);
		out.writeInt(this.x);
		out.writeInt(this.y);
		out.writeInt(this.z);
		out.writeByte(this.stage.ordinal());
	}
	
	@Override
	public boolean isPriority() {
		return false;
	}

	public static enum Stage {
		STAGE_1,
		STAGE_2,
		STAGE_3,
		STAGE_4,
		STAGE_5,
		STAGE_6,
		STAGE_7,
		STAGE_8,
		STAGE_9,
		STAGE_10;
	}
	
}<commit_msg>Add Stage.RESET to ServerBlockBreakAnimPacket<commit_after>package ch.spacebase.mc.protocol.packet.ingame.server.world;

import java.io.IOException;

import ch.spacebase.packetlib.io.NetInput;
import ch.spacebase.packetlib.io.NetOutput;
import ch.spacebase.packetlib.packet.Packet;

public class ServerBlockBreakAnimPacket implements Packet {

	private int breakerEntityId;
	private int x;
	private int y;
	private int z;
	private Stage stage;
	
	public ServerBlockBreakAnimPacket() {
	}
	
	public ServerBlockBreakAnimPacket(int breakerEntityId, int x, int y, int z, Stage stage) {
		this.breakerEntityId = breakerEntityId;
		this.x = x;
		this.y = y;
		this.z = z;
		this.stage = stage;
	}
	
	public int getBreakerEntityId() {
		return this.breakerEntityId;
	}
	
	public int getX() {
		return this.x;
	}
	
	public int getY() {
		return this.y;
	}
	
	public int getZ() {
		return this.z;
	}
	
	public Stage getStage() {
		return this.stage;
	}

	@Override
	public void read(NetInput in) throws IOException {
		this.breakerEntityId = in.readVarInt();
		this.x = in.readInt();
		this.y = in.readInt();
		this.z = in.readInt();
		byte stage = in.readByte();
		this.stage = stage == -1 ? Stage.RESET : Stage.values()[stage];
	}

	@Override
	public void write(NetOutput out) throws IOException {
		out.writeVarInt(this.breakerEntityId);
		out.writeInt(this.x);
		out.writeInt(this.y);
		out.writeInt(this.z);
		out.writeByte(this.stage == Stage.RESET ? -1 : this.stage.ordinal());
	}
	
	@Override
	public boolean isPriority() {
		return false;
	}

	public static enum Stage {
		STAGE_1,
		STAGE_2,
		STAGE_3,
		STAGE_4,
		STAGE_5,
		STAGE_6,
		STAGE_7,
		STAGE_8,
		STAGE_9,
		STAGE_10,
		RESET;
	}
	
}
{'fraction_non_alphanumeric': 0.11773700305810397, 'fraction_numerical': 0.007339449541284404, 'mean_word_length': 3.7337192474674383, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1896328', 'n_tokens_mistral': 1312, 'n_tokens_neox': 1192, 'n_words': 267}