user:ecolight:horse

[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);
    }
  • user/ecolight/horse.txt
  • 最終更新: 2021/05/09 01:13
  • by ecolight