@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(); }
@Override public Type getCatType() { return type; }
@Override public void setCatType(Type t) { setCatType(t.ordinal()); this.type = t; }
@Override public void setCatType(int i) { ((IEntityOcelotPet) getEntityPet()).setCatType(i); this.type = Type.values()[i]; }
@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 void deserialize(IDataNode dataNode) throws DeserializeException { _type = dataNode.getEnum("cat-type", Type.WILD_OCELOT, Type.class); _isSitting = dataNode.getBoolean("sitting"); }
@Deprecated public static Type getType(int id) { return null; }
/** * 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; }
Ocelot.Type getCatType();
void setCatType(Ocelot.Type type);