Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ActorOffset.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class EntityContext;
8class Vec2;
9class Vec3;
10// clang-format on
11
12namespace ActorOffset {
13// functions
14// NOLINTBEGIN
15MCNAPI ::Vec3 getEyeOffset(::EntityContext const& entity);
16
17MCNAPI ::Vec3 getHeadOffset(::EntityContext const& entity);
18
19MCNAPI float getHeightOffset(::EntityContext const& entity);
20
21MCNAPI void setAABBRelativeScaling(
22 ::EntityContext& entity,
23 ::std::optional<::Vec2> headScalar,
24 ::std::optional<::Vec2> eyeScalar,
25 ::std::optional<::Vec2> breathingScalar,
26 ::std::optional<::Vec2> mouthScalar
27);
28
29MCNAPI void setAABBRelativeScalingAndScaleNow(
30 ::EntityContext& entity,
31 ::std::optional<::Vec2> headScalar,
32 ::std::optional<::Vec2> eyeScalar,
33 ::std::optional<::Vec2> breathingScalar,
34 ::std::optional<::Vec2> mouthScalar
35);
36
37MCNAPI void setAbsoluteScaling(
38 ::EntityContext& entity,
39 ::std::optional<::Vec3> headOffset,
40 ::std::optional<::Vec3> eyeOffset,
41 ::std::optional<::Vec3> breathingOffset,
42 ::std::optional<::Vec3> mouthOffset
43);
44
45MCNAPI void setBreathingOffset(::EntityContext& entity, ::Vec3 const& breathingOffset);
46
47MCNAPI void setExplosionOffset(::EntityContext& entity, float explosionOffset);
48
49MCNAPI void setEyeOffset(::EntityContext& entity, ::Vec3 const& eyeOffset);
50
51MCNAPI void setHeightOffset(::EntityContext& entity, float heightOffset);
52// NOLINTEND
53
54// static variables
55// NOLINTBEGIN
56MCNAPI ::Vec3 const& DEFAULT_DROP_OFFSET();
57// NOLINTEND
58
59} // namespace ActorOffset
Definition EntityContext.h:15
Definition Vec2.h:5
Definition Vec3.h:10