[Bukkit]
public double getHorseSpeed(Horse h); public void setHorseSpeed(Horse h,double speed);
[CraftBukkit]
private String bQ; private String[] bR = new String[3]; public int maxDomestication = 100; // CraftBukkit - store max domestication value public double getHorseSpeed(Horse h){ AttributeInstance attributes = ((EntityInsentient)((CraftLivingEntity)h).getHandle()).getAttributeInstance(GenericAttributes.d); return attributes.getValue(); } public void setHorseSpeed(Horse h,double speed){ // use about 2.25 for normalish speed AttributeInstance attributes = ((EntityInsentient)((CraftLivingEntity)h).getHandle()).getAttributeInstance(GenericAttributes.d); attributes.setValue(speed); }
public double getHorseSpeed(Horse h){ AttributeInstance attributes = ((EntityInsentient)((CraftLivingEntity)h).getHandle()).getAttributeInstance(GenericAttributes.d); return attributes.getValue(); } public void setHorseSpeed(Horse h,double speed){ // use about 2.25 for normalish speed AttributeInstance attributes = ((EntityInsentient)((CraftLivingEntity)h).getHandle()).getAttributeInstance(GenericAttributes.d); attributes.setValue(speed); }