This file was deleted.

This file was deleted.

This file was deleted.

@@ -23,27 +23,31 @@
* License and see <http://www.spout.org/SpoutDevLicenseV1.txt> for the full license,
* including the MIT license.
*/
package org.spout.vanilla.protocol.event;
package org.spout.vanilla.protocol.event.entity;

import org.spout.api.protocol.event.ProtocolEvent;
import org.spout.api.util.Parameter;

public class StateChangeEvent extends ProtocolEvent {
private final byte reasonCode, gameMode;
import java.util.List;

public class EntityMetadataEvent extends ProtocolEvent {
private final int entityId;
private List<Parameter<?>> parameters;

public StateChangeEvent(byte reasonCode, byte gameMode) {
this.reasonCode = reasonCode;
this.gameMode = gameMode;
public EntityMetadataEvent(int entityId, List<Parameter<?>> parameters) {
this.entityId = entityId;
this.parameters = parameters;
}

public StateChangeEvent(byte reasonCode) {
this(reasonCode, (byte) -1);
public int getEntityId() {
return entityId;
}

public byte getReasonCode() {
return reasonCode;
public List<Parameter<?>> getParameters() {
return parameters;
}

public byte getGameMode() {
return gameMode;
public void setParameters(List<Parameter<?>> parameters) {
this.parameters = parameters;
}
}
@@ -58,7 +58,7 @@ public float getFoodSaturation() {
return saturation;
}

public void setFoodSaturation(float saturation) {
public void setFoodSaturation(short saturation) {
this.saturation = saturation;
}
}

This file was deleted.