Java 类org.bukkit.entity.Ocelot.Type 实例源码
项目:NucleusFramework
文件:OcelotAnimal.java
@Override
public void deserialize(LoreMetaMap metaMap) {
LoreMetaItem typeItem = metaMap.get("cat-type");
if (typeItem != null)
_type = typeItem.enumValue(Type.class);
LoreMetaItem sittingItem = metaMap.get("sitting");
if (sittingItem != null)
_isSitting = sittingItem.booleanValue();
}
项目:EchoPet
文件:OcelotPet.java
@Override
public Type getCatType() {
return type;
}
项目:EchoPet
文件:OcelotPet.java
@Override
public void setCatType(Type t) {
setCatType(t.ordinal());
this.type = t;
}
项目:EchoPet
文件:OcelotPet.java
@Override
public void setCatType(int i) {
((IEntityOcelotPet) getEntityPet()).setCatType(i);
this.type = Type.values()[i];
}
项目:SonarPet
文件:OcelotPet.java
@Override
public Type getCatType() {
return type;
}
项目:SonarPet
文件:OcelotPet.java
@Override
public void setCatType(Type t) {
setCatType(t.getId());
this.type = t;
}
项目:SonarPet
文件:OcelotPet.java
@Override
public void setCatType(int i) {
((IEntityOcelotPet) getEntityPet()).setCatType(i);
this.type = Type.getType(i);
}
项目:NucleusFramework
文件:OcelotAnimal.java
@Override
public void deserialize(IDataNode dataNode) throws DeserializeException {
_type = dataNode.getEnum("cat-type", Type.WILD_OCELOT, Type.class);
_isSitting = dataNode.getBoolean("sitting");
}
项目:BedrockAPI
文件:Ocelot.java
@Deprecated public static Type getType(int id) {
return null;
}
项目:iDisguise
文件:OcelotDisguise.java
/**
* Creates an instance.
*
* @since 4.0.1
*/
public OcelotDisguise() {
this(Type.WILD_OCELOT, true);
}
项目:iDisguise
文件:OcelotDisguise.java
/**
* 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;
}
项目:iDisguise
文件:OcelotDisguise.java
/**
* Gets the cat type.
*
* @since 3.0.1
* @return the cat type
*/
public Type getCatType() {
return catType;
}
项目:iDisguise
文件:OcelotDisguise.java
/**
* Sets the cat type.
*
* @since 3.0.1
* @param catType the cat type
*/
public void setCatType(Type catType) {
this.catType = catType;
}
项目:BedrockAPI
文件:Ocelot.java
Ocelot.Type getCatType();
项目:BedrockAPI
文件:Ocelot.java
void setCatType(Ocelot.Type type);