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(
61 ::StrictEntityContext const& context,
62 ::StateVectorComponent const& stateVectorComponent,
63 ::ActorDataJumpDurationComponent& actorDataJumpDurationComponent,
64 ::ActorDataDirtyFlagsComponent& actorDataDirtyFlags,
65 ::MobJumpComponent& mobJumpComponent,
66 ::VehicleComponent const* vehicleComponent,
67 ::ViewT<::StrictEntityContext, ::Include<::ParrotFlagComponent>, ::PassengerComponent const> parrotPassengers,
68 ::EntityModifier<::ExitFromPassengerFlagComponent, ::StopRidingRequestComponent, ::MobIsJumpingFlagComponent>&
69 modifier
70);
71
72MCAPI float getBrightness(
73 ::StrictEntityContext const& context,
74 float alpha,
75 ::IConstBlockSource const& region,
76 ::AABBShapeComponent const& aabbShapeComponent,
77 ::OffsetsComponent const& offsetsComponent,
78 ::StateVectorComponent const& stateVectorComponent,
79 ::ViewT<::StrictEntityContext, ::Include<::BlazeFlagComponent>> blazeView,
80 ::ViewT<::StrictEntityContext, ::Include<::LavaSlimeFlagComponent>> lavaSlimeView
81);
82
83MCAPI bool isImmobile(
84 ::StrictEntityContext const& context,
85 ::ViewT<::StrictEntityContext, ::ActorDataFlagComponent const, ::Optional<::ActorIsImmobileFlagComponent const>>*
86 actorView,
87 ::ViewT<
88 ::StrictEntityContext,
89 ::Include<::MobFlagComponent>,
90 ::MovementAttributesComponent const,
91 ::Optional<::ActorIsKnockedBackOnDeathFlagComponent const>>* mobView,
92 ::ViewT<
93 ::StrictEntityContext,
94 ::ActorDataFlagComponent const,
95 ::Optional<::VehicleInputIntentComponent const>,
96 ::Include<::OnGroundFlagComponent, ::HorseFlagComponent>,
97 ::Exclude<::MobAllowStandSlidingFlagComponent, ::MobIsJumpingFlagComponent>>* horseView,
98 ::ViewT<::StrictEntityContext, ::Include<::HorseFlagComponent>>* onlyHorseView,
99 ::ViewT<::StrictEntityContext, ::PlayerIsSleepingFlagComponent const, ::PlayerComponent const>* playerView
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// NOLINTEND
116
117} // namespace ActorMobilityUtils
Definition AABB.h:18
Definition EntityContext.h:16
Definition GetCollisionShapeInterface.h:13
Definition IConstBlockSource.h:25
Definition StrictEntityContext.h:8
Definition Vec3.h:10
Definition AABBShapeComponent.h:9
Definition ActorDataDirtyFlagsComponent.h:5
Definition ActorDataFlagComponent.h:9
Definition ActorDataJumpDurationComponent.h:8
Definition ActorIsImmobileFlagComponent.h:5
Definition ActorIsKnockedBackOnDeathFlagComponent.h:5
Definition BlazeFlagComponent.h:5
Definition ExitFromPassengerFlagComponent.h:5
Definition HorseFlagComponent.h:5
Definition LavaSlimeFlagComponent.h:5
Definition MobAllowStandSlidingFlagComponent.h:5
Definition MobFlagComponent.h:5
Definition MobIsJumpingFlagComponent.h:5
Definition MobJumpComponent.h:8
Definition MovementAttributesComponent.h:5
Definition OffsetsComponent.h:8
Definition OnGroundFlagComponent.h:5
Definition ParrotFlagComponent.h:5
Definition PassengerComponent.h:8
Definition PlayerComponent.h:5
Definition PlayerIsSleepingFlagComponent.h:5
Definition StateVectorComponent.h:8
Definition StopRidingRequestComponent.h:5
Definition SubBBsComponent.h:10
Definition VehicleComponent.h:10
Definition VehicleInputIntentComponent.h:11