wiki通知情報

2023年10月からルールが変更されています。再度ルールをご確認ください。
更新情報(2021/5/5) / 重要告知(2021/5/9)

[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);
    }
プリント/エキスポート
QRコード
QR Code user:ecolight:horse (generated for current page)