AvatarRenderState.java
net.minecraft.client.renderer.entity.state.AvatarRenderState
信息
- 全限定名:net.minecraft.client.renderer.entity.state.AvatarRenderState
- 类型:public class
- 包:net.minecraft.client.renderer.entity.state
- 源码路径:src/main/java/net/minecraft/client/renderer/entity/state/AvatarRenderState.java
- 起始行号:L13
- 继承:HumanoidRenderState
- 职责:
TODO
字段/常量
-
skin- 类型:
PlayerSkin - 修饰符:
public - 源码定位:
L14 - 说明:
TODO
- 类型:
-
capeFlap- 类型:
float - 修饰符:
public - 源码定位:
L15 - 说明:
TODO
- 类型:
-
capeLean- 类型:
float - 修饰符:
public - 源码定位:
L16 - 说明:
TODO
- 类型:
-
capeLean2- 类型:
float - 修饰符:
public - 源码定位:
L17 - 说明:
TODO
- 类型:
-
arrowCount- 类型:
int - 修饰符:
public - 源码定位:
L18 - 说明:
TODO
- 类型:
-
stingerCount- 类型:
int - 修饰符:
public - 源码定位:
L19 - 说明:
TODO
- 类型:
-
isSpectator- 类型:
boolean - 修饰符:
public - 源码定位:
L20 - 说明:
TODO
- 类型:
-
showHat- 类型:
boolean - 修饰符:
public - 源码定位:
L21 - 说明:
TODO
- 类型:
-
showJacket- 类型:
boolean - 修饰符:
public - 源码定位:
L22 - 说明:
TODO
- 类型:
-
showLeftPants- 类型:
boolean - 修饰符:
public - 源码定位:
L23 - 说明:
TODO
- 类型:
-
showRightPants- 类型:
boolean - 修饰符:
public - 源码定位:
L24 - 说明:
TODO
- 类型:
-
showLeftSleeve- 类型:
boolean - 修饰符:
public - 源码定位:
L25 - 说明:
TODO
- 类型:
-
showRightSleeve- 类型:
boolean - 修饰符:
public - 源码定位:
L26 - 说明:
TODO
- 类型:
-
showCape- 类型:
boolean - 修饰符:
public - 源码定位:
L27 - 说明:
TODO
- 类型:
-
fallFlyingTimeInTicks- 类型:
float - 修饰符:
public - 源码定位:
L28 - 说明:
TODO
- 类型:
-
shouldApplyFlyingYRot- 类型:
boolean - 修饰符:
public - 源码定位:
L29 - 说明:
TODO
- 类型:
-
flyingYRot- 类型:
float - 修饰符:
public - 源码定位:
L30 - 说明:
TODO
- 类型:
-
parrotOnLeftShoulder- 类型:
Parrot.Variant - 修饰符:
public - 源码定位:
L31 - 说明:
TODO
- 类型:
-
parrotOnRightShoulder- 类型:
Parrot.Variant - 修饰符:
public - 源码定位:
L32 - 说明:
TODO
- 类型:
-
id- 类型:
int - 修饰符:
public - 源码定位:
L33 - 说明:
TODO
- 类型:
-
showExtraEars- 类型:
boolean - 修饰符:
public - 源码定位:
L34 - 说明:
TODO
- 类型:
-
heldOnHead- 类型:
ItemStackRenderState - 修饰符:
public final - 源码定位:
L35 - 说明:
TODO
- 类型:
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
public float fallFlyingScale() @ L37
- 方法名:fallFlyingScale
- 源码定位:L37
- 返回类型:float
- 修饰符:public
参数:
- 无
说明:
TODO
代码
@OnlyIn(Dist.CLIENT)
public class AvatarRenderState extends HumanoidRenderState {
public PlayerSkin skin = DefaultPlayerSkin.getDefaultSkin();
public float capeFlap;
public float capeLean;
public float capeLean2;
public int arrowCount;
public int stingerCount;
public boolean isSpectator;
public boolean showHat = true;
public boolean showJacket = true;
public boolean showLeftPants = true;
public boolean showRightPants = true;
public boolean showLeftSleeve = true;
public boolean showRightSleeve = true;
public boolean showCape = true;
public float fallFlyingTimeInTicks;
public boolean shouldApplyFlyingYRot;
public float flyingYRot;
public Parrot.@Nullable Variant parrotOnLeftShoulder;
public Parrot.@Nullable Variant parrotOnRightShoulder;
public int id;
public boolean showExtraEars = false;
public final ItemStackRenderState heldOnHead = new ItemStackRenderState();
public float fallFlyingScale() {
return Mth.clamp(this.fallFlyingTimeInTicks * this.fallFlyingTimeInTicks / 100.0F, 0.0F, 1.0F);
}
}引用的其他类
-
- 引用位置:
继承
- 引用位置:
-
- 引用位置:
字段/构造调用 - 关联成员:
ItemStackRenderState()
- 引用位置:
-
- 引用位置:
方法调用 - 关联成员:
DefaultPlayerSkin.getDefaultSkin()
- 引用位置:
-
- 引用位置:
方法调用 - 关联成员:
Mth.clamp()
- 引用位置:
-
- 引用位置:
字段
- 引用位置:
-
- 引用位置:
字段
- 引用位置: