LeviLamina
Loading...
Searching...
No Matches
ActorMobilityUtils.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/ecs/Optional.h"
7#include "mc/deps/ecs/ViewT.h"
8#include "mc/deps/ecs/strict/EntityModifier.h"
9#include "mc/deps/ecs/strict/Exclude.h"
10#include "mc/deps/ecs/strict/Include.h"
11#include "mc/world/level/material/MaterialType.h"
12
13// auto generated forward declare list
14// clang-format off
15class AABB;
16class EntityContext;
20class Vec3;
32struct MobFlagComponent;
34struct MobJumpComponent;
36struct OffsetsComponent;
40struct PlayerComponent;
44struct SubBBsComponent;
45struct VehicleComponent;
47// clang-format on
48
49namespace ActorMobilityUtils {
50// functions
51// NOLINTBEGIN
52MCAPI bool canJump(
53 ::ActorDataFlagComponent const& actorData,
54 ::IConstBlockSource const& region,
55 ::StateVectorComponent const& stateVector,
56 ::AABBShapeComponent const& aabbShape,
57 ::GetCollisionShapeInterface const& collisionShape
58);
59
60MCAPI void endJump(
62 ::StateVectorComponent const& stateVectorComponent,
63 ::ActorDataJumpDurationComponent& actorDataJumpDurationComponent,
64 ::ActorDataDirtyFlagsComponent& actorDataDirtyFlags,
65 ::MobJumpComponent& mobJumpComponent,
66 ::VehicleComponent const* vehicleComponent,
69 modifier
70);
71
72MCAPI float getBrightness(
74 float region,
75 ::IConstBlockSource const& aabbShapeComponent,
76 ::AABBShapeComponent const& offsetsComponent,
77 ::OffsetsComponent const& stateVectorComponent,
78 ::StateVectorComponent const& blazeView,
81);
82
83MCAPI bool isImmobile(
86 actorView,
87 ::ViewT<
92 ::ViewT<
100);
101
102MCAPI bool
103isInLava(::IConstBlockSource const& region, ::AABBShapeComponent const& aabb, ::SubBBsComponent const& subBBs);
104
105MCAPI bool isUnderLiquid(
106 ::Vec3 const& actorPos,
107 ::Vec3 const& actorHeadPos,
108 ::IConstBlockSource const& region,
109 ::MaterialType blockType
110);
111
112MCAPI bool onHoverableBlock(::IConstBlockSource const& region, ::Vec3 const& pos, ::AABB const& aabb);
113
114MCAPI bool shouldApplyLava(::IConstBlockSource const& region, ::EntityContext const& entity);
115
116MCAPI void startSpinAttack(::EntityContext& entity, int riptideLevel);
117// NOLINTEND
118
119} // namespace ActorMobilityUtils
Definition AABB.h:16
Definition EntityContext.h:16
Definition EntityModifier.h:6
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:24
Definition Optional.h:8
Definition StrictEntityContext.h:10
Definition Vec3.h:10
Definition ViewT.h:6
Definition AABBShapeComponent.h:11
Definition ActorDataDirtyFlagsComponent.h:5
Definition ActorDataFlagComponent.h:8
Definition ActorDataJumpDurationComponent.h:8
Definition ActorIsImmobileFlagComponent.h:5
Definition ActorIsKnockedBackOnDeathFlagComponent.h:5
Definition BlazeFlagComponent.h:5
Definition Exclude.h:6
Definition ExitFromPassengerFlagComponent.h:5
Definition HorseFlagComponent.h:5
Definition Include.h:6
Definition LavaSlimeFlagComponent.h:5
Definition MobAllowStandSlidingFlagComponent.h:5
Definition MobFlagComponent.h:5
Definition MobIsJumpingFlagComponent.h:5
Definition MobJumpComponent.h:10
Definition MovementAttributesComponent.h:5
Definition OffsetsComponent.h:10
Definition OnGroundFlagComponent.h:5
Definition ParrotFlagComponent.h:5
Definition PassengerComponent.h:10
Definition PlayerComponent.h:5
Definition PlayerIsSleepingFlagComponent.h:5
Definition StateVectorComponent.h:10
Definition StopRidingRequestComponent.h:5
Definition SubBBsComponent.h:10
Definition VehicleComponent.h:10
Definition VehicleInputIntentComponent.h:12
Definition context.h:5