记录类 GsHelper.AttributeEvaluatorBuffer
java.lang.Object
java.lang.Record
mod.chloeprime.gunsmithlib.common.util.GsHelper.AttributeEvaluatorBuffer
- 封闭类:
GsHelper
-
构造器概要
构造器构造器说明AttributeEvaluatorBuffer(List<net.minecraft.world.entity.ai.attributes.AttributeModifier> addition, List<net.minecraft.world.entity.ai.attributes.AttributeModifier> mulBase, List<net.minecraft.world.entity.ai.attributes.AttributeModifier> mulTotal) 创建AttributeEvaluatorBuffer记录类的实例。 -
方法概要
修饰符和类型方法说明List<net.minecraft.world.entity.ai.attributes.AttributeModifier> addition()返回addition记录组件的值。final boolean指示某个其他对象是否“等于”此对象。final inthashCode()返回此对象的哈希代码值。List<net.minecraft.world.entity.ai.attributes.AttributeModifier> mulBase()返回mulBase记录组件的值。List<net.minecraft.world.entity.ai.attributes.AttributeModifier> mulTotal()返回mulTotal记录组件的值。final StringtoString()返回此记录类的字符串表示形式。
-
构造器详细资料
-
AttributeEvaluatorBuffer
public AttributeEvaluatorBuffer() -
AttributeEvaluatorBuffer
public AttributeEvaluatorBuffer(List<net.minecraft.world.entity.ai.attributes.AttributeModifier> addition, List<net.minecraft.world.entity.ai.attributes.AttributeModifier> mulBase, List<net.minecraft.world.entity.ai.attributes.AttributeModifier> mulTotal) 创建AttributeEvaluatorBuffer记录类的实例。- 参数:
addition-addition记录组件的值mulBase-mulBase记录组件的值mulTotal-mulTotal记录组件的值
-
-
方法详细资料
-
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录类中的所有组件都使用Objects::equals(Object,Object)进行比较。 -
addition
返回addition记录组件的值。- 返回:
addition记录组件的值
-
mulBase
返回mulBase记录组件的值。- 返回:
mulBase记录组件的值
-
mulTotal
返回mulTotal记录组件的值。- 返回:
mulTotal记录组件的值
-