文書の過去の版を表示しています。
[Bukkit]
- org.bukkit.entity.Horse
public double getHorseSpeed(Horse h); public void setHorseSpeed(Horse h,double speed);
[CraftBukkit]
- net.minecraft.server.EntityHorse
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); }
- org.bukkit.craftbukkit.entity.CraftHorse
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); }