AttributeAPI
在属性脚本中使用AttributeAPI中的方法(函数)。
Java
//返回值:AttributeData
//描述:此处留空
AttributeAPI.getAttrData(LivingEntity entity)
//返回值:void
//描述:此处留空
//org.serverct.ersha.attribute.data.task.TaskFunction
AttributeAPI.runJvmEntityTask(long millis, String id, LivingEntity entity, Boolean skipStateCheck, TaskFunction func)
//返回值:void
//描述:此处留空
//kotlin版本号.jvm.functions.Function0
AttributeAPI.runEntityTask(long millis, String id, LivingEntity entity, Boolean skipStateCheck, Function0<Unit> block)
//返回值:void
//描述:此处留空
AttributeAPI.updateAttribute(LivingEntity entity)
//返回值:void
//描述:此处留空
AttributeAPI.runAttributeAttackEntity(LivingEntity attacker, LivingEntity entity, double damage, boolean callBeforeEvent, boolean callCancel)
//返回值:void
//描述:此处留空
AttributeAPI.attackTo(LivingEntity entity, LivingEntity attacker, double damage)
//返回值:AttributeSource
//描述:此处留空
AttributeAPI.getAttributeSource(ItemStack itemStack)
//返回值:AttributeSource
//描述:此处留空
AttributeAPI.getAttributeSource(List<String> list)
//返回值:AttributeSource
//描述:此处留空
AttributeAPI.getAttributeSource(List<? extends ItemStack> items, LivingEntity entity)
//返回值:void
//描述:此处留空
AttributeAPI.addSourceAttribute(AttributeData data, String source, AttributeSource attr)
//返回值:void
//描述:此处留空
AttributeAPI.addSourceAttribute(AttributeData data, String source, ItemStack itemStack)
//返回值:void
//描述:此处留空
AttributeAPI.addSourceAttribute(AttributeData data, String source, List<String> list)
//返回值:void
//描述:此处留空
AttributeAPI.addSourceAttribute(AttributeData data, String source, HashMap<String, Number[]> attribute)
//返回值:void
//描述:此处留空
AttributeAPI.addSourceAttributeFromItems(AttributeData data, String source, List<? extends ItemStack> items)
//返回值:AttributeSource
//描述:此处留空
AttributeAPI.createStaticAttributeSource(HashMap<String, Number[]> attribute, HashMap<String, Double> percentage)
//返回值:AttributeSource
//描述:此处留空
AttributeAPI.createStaticAttributeSource(List<String> content)
//返回值:void
//描述:此处留空
AttributeAPI.addStaticAttributeSource(AttributeData data, String source, List<String> content)
//返回值:void
//描述:此处留空
AttributeAPI.addPersistentSourceAttribute(AttributeData data, String source, List<String> attributes, double time)
//返回值:void
//描述:此处留空
AttributeAPI.addPersistentSourceAttribute(AttributeData data, String source, List<String> attributes, double time, boolean saveToDatabase)
//返回值:void
//描述:此处留空
AttributeAPI.addPersistentSourceAttribute(AttributeData data, String source, AttributeSource attribute, double time, boolean saveToDatabase)
//返回值:void
//描述:此处留空
AttributeAPI.takePersistentSourceAttribute(AttributeData data, String source)
//返回值:void
//描述:此处留空
AttributeAPI.takeSourceAttribute(AttributeData attributeData, String source)
//返回值:boolean
//描述:此处留空
AttributeAPI.checkCondition(Player player, ItemStack item, EquipmentSlot slot)
//返回值:SubAttribute
//描述:此处留空
AttributeAPI.getAttribute(String serverAttributeName)
//返回值:String
//描述:此处留空
AttributeAPI.getServerAttributeName(String defaultAttributeName)
//返回值:String
//描述:此处留空
AttributeAPI.getDefaultAttributeName(String serverAttributeName)
//返回值:Collection<String>
//描述:此处留空
AttributeAPI.allServerKey()
//返回值:Collection<String>
//描述:此处留空
AttributeAPI.allDefaultKey()
//返回值:SubAttribute
//描述:此处留空
AttributeAPI.getCanTriggerAttribute(String serverAttributeName)