46 lines
1.4 KiB
Java
46 lines
1.4 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*
|
|
* Could not load the following classes:
|
|
* org.jspecify.annotations.Nullable
|
|
*/
|
|
package net.minecraft.client.renderer.entity.state;
|
|
|
|
import net.minecraft.client.renderer.entity.state.EntityRenderState;
|
|
import net.minecraft.client.renderer.item.ItemStackRenderState;
|
|
import net.minecraft.core.Direction;
|
|
import net.minecraft.world.entity.Pose;
|
|
import net.minecraft.world.item.component.ResolvableProfile;
|
|
import org.jspecify.annotations.Nullable;
|
|
|
|
public class LivingEntityRenderState
|
|
extends EntityRenderState {
|
|
public float bodyRot;
|
|
public float yRot;
|
|
public float xRot;
|
|
public float deathTime;
|
|
public float walkAnimationPos;
|
|
public float walkAnimationSpeed;
|
|
public float scale = 1.0f;
|
|
public float ageScale = 1.0f;
|
|
public float ticksSinceEnemyHit;
|
|
public boolean isUpsideDown;
|
|
public boolean isFullyFrozen;
|
|
public boolean isBaby;
|
|
public boolean isInWater;
|
|
public boolean isAutoSpinAttack;
|
|
public boolean hasRedOverlay;
|
|
public boolean isInvisibleToPlayer;
|
|
public @Nullable Direction bedOrientation;
|
|
public Pose pose = Pose.STANDING;
|
|
public final ItemStackRenderState headItem = new ItemStackRenderState();
|
|
public float wornHeadAnimationPos;
|
|
public @Nullable SkullBlock.Type wornHeadType;
|
|
public @Nullable ResolvableProfile wornHeadProfile;
|
|
|
|
public boolean hasPose(Pose pose) {
|
|
return this.pose == pose;
|
|
}
|
|
}
|
|
|