文書の表示以前のリビジョンバックリンク全て展開する/折り畳む文書の先頭へ この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。 [Bukkit] *org.bukkit.entity.Horse <code java> public double getHorseSpeed(Horse h); public void setHorseSpeed(Horse h,double speed); </code> [CraftBukkit] *net.minecraft.server.EntityHorse <code java> 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); } </code> *org.bukkit.craftbukkit.entity.CraftHorse <code java> 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); } </code> user/ecolight/horse.txt 最終更新: 2021/05/08 16:13by ecolight