下面列出了怎么用org.bukkit.entity.Ocelot.Type的API类实例代码及写法,或者点击链接到github查看源代码。
@Override
public Type getCatType() {
return type;
}
@Override
public void setCatType(Type t) {
setCatType(t.getId());
this.type = t;
}
@Override
public void setCatType(int i) {
((IEntityOcelotPet) getEntityPet()).setCatType(i);
this.type = Type.getType(i);
}
@Override
public Type getCatType() {
return type;
}
@Override
public void setCatType(Type t) {
setCatType(t.getId());
this.type = t;
}
@Override
public void setCatType(int i) {
((IEntityOcelotPet) getEntityPet()).setCatType(i);
this.type = Type.getType(i);
}
/**
* Creates an instance.
*
* @since 4.0.1
*/
public OcelotDisguise() {
this(Type.WILD_OCELOT, true);
}
/**
* 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;
}
/**
* Gets the cat type.
*
* @since 3.0.1
* @return the cat type
*/
public Type getCatType() {
return catType;
}
/**
* Sets the cat type.
*
* @since 3.0.1
* @param catType the cat type
*/
public void setCatType(Type catType) {
this.catType = catType;
}