类 PercentBasedAttribute

java.lang.Object
net.minecraft.world.entity.ai.attributes.Attribute
net.minecraft.world.entity.ai.attributes.RangedAttribute
mod.chloeprime.gunsmithlib.common.util.PercentBasedAttribute
所有已实现的接口:
net.neoforged.neoforge.common.extensions.IAttributeExtension

@Deprecated(since="MC1.21", forRemoval=true) public class PercentBasedAttribute extends net.minecraft.world.entity.ai.attributes.RangedAttribute
已过时, 待删除: 此 API 元素将从以后的版本中删除。
A Percentile Based Attribute is one which always displays modifiers as percentages, even addition ones.
This is used for attributes that would not make sense being displayed as flat additions (ex +0.05 Life Steal).
  • 嵌套类概要

    从类继承的嵌套类/接口 net.minecraft.world.entity.ai.attributes.Attribute

    net.minecraft.world.entity.ai.attributes.Attribute.Sentiment
  • 字段概要

    从类继承的字段 net.minecraft.world.entity.ai.attributes.Attribute

    CODEC, MERGED_BLUE, MERGED_GRAY, MERGED_RED, STREAM_CODEC

    从接口继承的字段 net.neoforged.neoforge.common.extensions.IAttributeExtension

    FORMAT
  • 构造器概要

    构造器
    构造器
    说明
    PercentBasedAttribute(String pDescriptionId, double pDefaultValue, double pMin, double pMax)
    已过时, 待删除: 此 API 元素将从以后的版本中删除。
     
  • 方法概要

    从类继承的方法 net.minecraft.world.entity.ai.attributes.RangedAttribute

    getMaxValue, getMinValue, sanitizeValue

    从类继承的方法 net.minecraft.world.entity.ai.attributes.Attribute

    getDefaultValue, getDescriptionId, getMergedStyle, getStyle, isClientSyncable, setSentiment, setSyncable

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    从接口继承的方法 net.neoforged.neoforge.common.extensions.IAttributeExtension

    getBaseId, getDebugInfo, toBaseComponent, toComponent, toValueComponent
  • 构造器详细资料

    • PercentBasedAttribute

      public PercentBasedAttribute(String pDescriptionId, double pDefaultValue, double pMin, double pMax)
      已过时, 待删除: 此 API 元素将从以后的版本中删除。