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);
    }
}

引用的其他类