org.bukkit.entity.Ocelot.Type Java Examples

The following examples show how to use org.bukkit.entity.Ocelot.Type. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: OcelotPet.java    From SonarPet with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Type getCatType() {
    return type;
}
 
Example #2
Source File: OcelotPet.java    From SonarPet with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void setCatType(Type t) {
    setCatType(t.getId());
    this.type = t;
}
 
Example #3
Source File: OcelotPet.java    From SonarPet with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void setCatType(int i) {
    ((IEntityOcelotPet) getEntityPet()).setCatType(i);
    this.type = Type.getType(i);
}
 
Example #4
Source File: OcelotPet.java    From EchoPet with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Type getCatType() {
    return type;
}
 
Example #5
Source File: OcelotPet.java    From EchoPet with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void setCatType(Type t) {
    setCatType(t.getId());
    this.type = t;
}
 
Example #6
Source File: OcelotPet.java    From EchoPet with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void setCatType(int i) {
    ((IEntityOcelotPet) getEntityPet()).setCatType(i);
    this.type = Type.getType(i);
}
 
Example #7
Source File: OcelotDisguise.java    From iDisguise with Creative Commons Attribution Share Alike 4.0 International 2 votes vote down vote up
/**
 * Creates an instance.
 * 
 * @since 4.0.1
 */
public OcelotDisguise() {
	this(Type.WILD_OCELOT, true);
}
 
Example #8
Source File: OcelotDisguise.java    From iDisguise with Creative Commons Attribution Share Alike 4.0 International 2 votes vote down vote up
/**
 * Creates an instance.
 * 
 * @since 3.0.1
 * @param catType the cat type
 * @param adult should the disguise be an adult
 */
public OcelotDisguise(Type catType, boolean adult) {
	super(DisguiseType.OCELOT, adult);
	this.catType = catType;
}
 
Example #9
Source File: OcelotDisguise.java    From iDisguise with Creative Commons Attribution Share Alike 4.0 International 2 votes vote down vote up
/**
 * Gets the cat type.
 * 
 * @since 3.0.1
 * @return the cat type
 */
public Type getCatType() {
	return catType;
}
 
Example #10
Source File: OcelotDisguise.java    From iDisguise with Creative Commons Attribution Share Alike 4.0 International 2 votes vote down vote up
/**
 * Sets the cat type.
 * 
 * @since 3.0.1
 * @param catType the cat type
 */
public void setCatType(Type catType) {
	this.catType = catType;
}