/FileExtraction/Java_unseen/Wind-Development_WindSpigot/WindSpigot-Server/src/main/java/org/bukkit/craftbukkit/entity/CraftPig.java
package org.bukkit.craftbukkit.entity;

import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Pig;

import net.minecraft.server.EntityPig;

public class CraftPig extends CraftAnimals implements Pig {
	public CraftPig(CraftServer server, EntityPig entity) {
		super(server, entity);
	}

	@Override
	public boolean hasSaddle() {
		return getHandle().hasSaddle();
	}

	@Override
	public void setSaddle(boolean saddled) {
		getHandle().setSaddle(saddled);
	}

	@Override
	public EntityPig getHandle() {
		return (EntityPig) entity;
	}

	@Override
	public String toString() {
		return "CraftPig";
	}

	@Override
	public EntityType getType() {
		return EntityType.PIG;
	}
}
