/*******************************************************************************
* This file is part of ASkyBlock.
*
* ASkyBlock is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ASkyBlock is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with ASkyBlock. If not, see <http://www.gnu.org/licenses/>.
*******************************************************************************/
package com.wasteofplastic.askyblock.schematics;
import org.bukkit.entity.EntityType;
import org.bukkit.util.BlockVector;
import org.bukkit.util.Vector;
public class EntityObject {
private EntityType type;
private BlockVector location;
private byte color;
private float yaw;
private float pitch;
private boolean sheared;
private Vector motion;
private int age;
private int rabbitType;
private int catType;
private boolean sitting;
private int profession;
private boolean carryingChest;
private boolean owned;
private byte collarColor;
// Paintings
private byte facing;
private String motive;
// Item Frames
private float itemDropChance;
private byte itemRotation;
// Coordinates for tiles
private Double tileX = null;
private Double tileY = null;
private Double tileZ = null;
// Items informations
private Byte count = null;
private Short damage = null;
private String id = null;
/**
* @return the type
*/
public EntityType getType() {
return type;
}
/**
* @param type the type to set
*/
public void setType(EntityType type) {
this.type = type;
}
/**
* @return the location
*/
public BlockVector getLocation() {
return location;
}
/**
* @param location the location to set
*/
public void setLocation(BlockVector location) {
this.location = location;
}
/**
* @return the color
*/
public byte getColor() {
return color;
}
/**
* @param color the color to set
*/
public void setColor(byte color) {
this.color = color;
}
/**
* @return the yaw
*/
public float getYaw() {
return yaw;
}
/**
* @param yaw the yaw to set
*/
public void setYaw(float yaw) {
this.yaw = yaw;
}
/**
* @return the pitch
*/
public float getPitch() {
return pitch;
}
/**
* @param pitch
*/
public void setPitch(float pitch) {
this.pitch = pitch;
}
/**
* @return the sheared
*/
public boolean isSheared() {
return sheared;
}
/**
* @param sheared the sheared to set
*/
public void setSheared(boolean sheared) {
this.sheared = sheared;
}
/**
* @return the motion
*/
public Vector getMotion() {
return motion;
}
/**
* @param motion the motion to set
*/
public void setMotion(Vector motion) {
this.motion = motion;
}
/**
* @return the age
*/
public int getAge() {
return age;
}
/**
* @param age the age to set
*/
public void setAge(int age) {
this.age = age;
}
/**
* @return the profession
*/
public int getProfession() {
return profession;
}
/**
* @param profession the profession to set
*/
public void setProfession(int profession) {
this.profession = profession;
}
/**
* @return the rabbitType
*/
public int getRabbitType() {
return rabbitType;
}
/**
* @param rabbitType the rabbitType to set
*/
public void setRabbitType(int rabbitType) {
this.rabbitType = rabbitType;
}
/**
* @return the carryingChest
*/
public boolean isCarryingChest() {
return carryingChest;
}
/**
* @param carryingChest the carryingChest to set
*/
public void setCarryingChest(byte carryingChest) {
if (carryingChest > (byte)0) {
this.carryingChest = true;
}
this.carryingChest = false;
}
/**
* @return the catType
*/
public int getCatType() {
return catType;
}
/**
* @param catType the catType to set
*/
public void setCatType(int catType) {
this.catType = catType;
}
/**
* @return the sitting
*/
public boolean isSitting() {
return sitting;
}
/**
* @param sitting the sitting to set
*/
public void setSitting(byte sitting) {
if (sitting > (byte)0) {
this.sitting = true;
}
this.sitting = false;
}
/**
* @return the owned
*/
public boolean isOwned() {
return owned;
}
/**
* @param owned the owned to set
*/
public void setOwned(boolean owned) {
this.owned = owned;
}
/**
* @return the collarColor
*/
public byte getCollarColor() {
return collarColor;
}
/**
* @param collarColor the collarColor to set
*/
public void setCollarColor(byte collarColor) {
this.collarColor = collarColor;
}
/**
* @return the facing
*/
public byte getFacing() {
return facing;
}
/**
* @param facing the facing to set
*/
public void setFacing(byte facing) {
this.facing = facing;
}
/**
* @return the motive
*/
public String getMotive() {
return motive;
}
/**
* @param motive the motive to set
*/
public void setMotive(String motive) {
this.motive = motive;
}
/**
* @return the itemDropChance
*/
public float getItemDropChance() {
return itemDropChance;
}
/**
* @param itemDropChance the itemDropChance to set
*/
public void setItemDropChance(float itemDropChance) {
this.itemDropChance = itemDropChance;
}
/**
* @return the itemRotation
*/
public byte getItemRotation() {
return itemRotation;
}
/**
* @param itemRotation the itemRotation to set
*/
public void setItemRotation(byte itemRotation) {
this.itemRotation = itemRotation;
}
/**
* @return the tileX
*/
public Double getTileX() {
return tileX;
}
/**
* @param tileX the tileX to set
*/
public void setTileX(Double tileX) {
this.tileX = tileX;
}
/**
* @return the tileX
*/
public Double getTileY() {
return tileY;
}
/**
* @param tileY the tileY to set
*/
public void setTileY(Double tileY) {
this.tileY = tileY;
}
/**
* @return the tileX
*/
public Double getTileZ() {
return tileZ;
}
/**
* @param tileZ the tileZ to set
*/
public void setTileZ(Double tileZ) {
this.tileZ = tileZ;
}
/**
* @return the count
*/
public Byte getCount() {
return count;
}
/**
* @param count the count to set
*/
public void setCount(Byte count) {
this.count = count;
}
/**
* @return the damage
*/
public Short getDamage() {
return damage;
}
/**
* @param damage the damage to set
*/
public void setDamage(Short damage) {
this.damage = damage;
}
/**
* @return the id
*/
public String getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(String id) {
this.id = id;
}
}