Record Class SuperLeashRenderState
java.lang.Object
java.lang.Record
top.r3944realms.superleadrope.client.renderer.state.SuperLeashRenderState
public record SuperLeashRenderState(net.minecraft.world.phys.Vec3 startPos, net.minecraft.world.phys.Vec3 endPos, net.minecraft.world.phys.Vec3 lastStartPos, net.minecraft.world.phys.Vec3 lastEndPos, float tension, float stretchRatio, boolean isCritical, int keepLeashTicks, int color, float thickness, float swingAngle, float swingSpeed, Double maxDistance, boolean isFirstPerson, net.minecraft.core.BlockPos belowBlockPos)
extends Record
The type Super leash render state.
-
字段概要
字段修饰符和类型字段说明static final intThe constant COLOR_CRITICAL.static final intThe constant COLOR_NORMAL.static final intThe constant COLOR_TENSION. -
构造器概要
构造器构造器说明SuperLeashRenderState(net.minecraft.world.phys.Vec3 startPos, net.minecraft.world.phys.Vec3 endPos, net.minecraft.world.phys.Vec3 lastStartPos, net.minecraft.world.phys.Vec3 lastEndPos, float tension, float stretchRatio, boolean isCritical, int keepLeashTicks, int color, float thickness, float swingAngle, float swingSpeed, Double maxDistance, boolean isFirstPerson, net.minecraft.core.BlockPos belowBlockPos) 创建SuperLeashRenderState记录的实例。 -
方法概要
修饰符和类型方法说明net.minecraft.core.BlockPos返回belowBlockPos记录组件的值。intcolor()返回color记录组件的值。net.minecraft.world.phys.Vec3endPos()返回endPos记录组件的值。final boolean指示某个其他对象是否“等于”此对象。net.minecraft.world.phys.Vec3getSwingOffset(float progress, float partialTicks) 计算当前帧的摆动偏移量(用于波浪效果)final inthashCode()返回此对象的哈希代码值。boolean返回isCritical记录组件的值。boolean返回isFirstPerson记录组件的值。int返回keepLeashTicks记录组件的值。net.minecraft.world.phys.Vec3返回lastEndPos记录组件的值。net.minecraft.world.phys.Vec3返回lastStartPos记录组件的值。返回maxDistance记录组件的值。net.minecraft.world.phys.Vec3startPos()返回startPos记录组件的值。float返回stretchRatio记录组件的值。float返回swingAngle记录组件的值。float返回swingSpeed记录组件的值。floattension()返回tension记录组件的值。float返回thickness记录组件的值。final StringtoString()返回此记录的字符串表示形式。
-
字段详细资料
-
构造器详细资料
-
SuperLeashRenderState
public SuperLeashRenderState(net.minecraft.world.phys.Vec3 startPos, net.minecraft.world.phys.Vec3 endPos, net.minecraft.world.phys.Vec3 lastStartPos, net.minecraft.world.phys.Vec3 lastEndPos, float tension, float stretchRatio, boolean isCritical, int keepLeashTicks, int color, float thickness, float swingAngle, float swingSpeed, Double maxDistance, boolean isFirstPerson, net.minecraft.core.BlockPos belowBlockPos) 创建SuperLeashRenderState记录的实例。- 参数:
startPos-startPos记录组件的值endPos-endPos记录组件的值lastStartPos-lastStartPos记录组件的值lastEndPos-lastEndPos记录组件的值tension-tension记录组件的值stretchRatio-stretchRatio记录组件的值isCritical-isCritical记录组件的值keepLeashTicks-keepLeashTicks记录组件的值color-color记录组件的值thickness-thickness记录组件的值swingAngle-swingAngle记录组件的值swingSpeed-swingSpeed记录组件的值maxDistance-maxDistance记录组件的值isFirstPerson-isFirstPerson记录组件的值belowBlockPos-belowBlockPos记录组件的值
-
-
方法详细资料
-
getSwingOffset
public net.minecraft.world.phys.Vec3 getSwingOffset(float progress, float partialTicks) 计算当前帧的摆动偏移量(用于波浪效果)- 参数:
progress- 沿绳子的进度(0.0-1.0)partialTicks- 部分tick时间- 返回:
- 垂直于绳子方向的偏移向量 swing offset
-
toString
返回此记录的字符串表示形式。此表示形式包含类型的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 使用Objects::equals(Object,Object)对参考组件进行比较;使用 '==' 对基元组件进行比较 -
startPos
public net.minecraft.world.phys.Vec3 startPos()返回startPos记录组件的值。- 返回:
startPos记录组件的值
-
endPos
public net.minecraft.world.phys.Vec3 endPos()返回endPos记录组件的值。- 返回:
endPos记录组件的值
-
lastStartPos
public net.minecraft.world.phys.Vec3 lastStartPos()返回lastStartPos记录组件的值。- 返回:
lastStartPos记录组件的值
-
lastEndPos
public net.minecraft.world.phys.Vec3 lastEndPos()返回lastEndPos记录组件的值。- 返回:
lastEndPos记录组件的值
-
tension
public float tension()返回tension记录组件的值。- 返回:
tension记录组件的值
-
stretchRatio
public float stretchRatio()返回stretchRatio记录组件的值。- 返回:
stretchRatio记录组件的值
-
isCritical
public boolean isCritical()返回isCritical记录组件的值。- 返回:
isCritical记录组件的值
-
keepLeashTicks
public int keepLeashTicks()返回keepLeashTicks记录组件的值。- 返回:
keepLeashTicks记录组件的值
-
color
public int color()返回color记录组件的值。- 返回:
color记录组件的值
-
thickness
public float thickness()返回thickness记录组件的值。- 返回:
thickness记录组件的值
-
swingAngle
public float swingAngle()返回swingAngle记录组件的值。- 返回:
swingAngle记录组件的值
-
swingSpeed
public float swingSpeed()返回swingSpeed记录组件的值。- 返回:
swingSpeed记录组件的值
-
maxDistance
返回maxDistance记录组件的值。- 返回:
maxDistance记录组件的值
-
isFirstPerson
public boolean isFirstPerson()返回isFirstPerson记录组件的值。- 返回:
isFirstPerson记录组件的值
-
belowBlockPos
public net.minecraft.core.BlockPos belowBlockPos()返回belowBlockPos记录组件的值。- 返回:
belowBlockPos记录组件的值
-