LeviLamina
Loading...
Searching...
No Matches
PushableComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Actor;
8class Vec3;
9// clang-format on
10
12public:
13 // PushableComponent inner types define
14 using PushVectors = ::std::pair<::Vec3, ::Vec3>;
15
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::ll::TypedStorage<1, 1, bool> mIsPushable;
20 ::ll::TypedStorage<1, 1, bool> mIsPushableByPiston;
21 ::ll::TypedStorage<4, 4, float> mPushthrough;
22 // NOLINTEND
23
24public:
25 // member functions
26 // NOLINTBEGIN
27 MCAPI ::std::pair<::Vec3, ::Vec3> _calculatePushVectorBoat(::Actor& owner, ::Actor& other, bool pushSelfOnly);
28
29 MCAPI ::std::pair<::Vec3, ::Vec3> _calculatePushVectorMinecart(::Actor& owner, ::Actor& other, bool pushSelfOnly);
30
31 MCAPI void push(::Actor& owner, ::Vec3 const& vec);
32
33 MCAPI void push(::Actor& owner, ::Actor& other, bool pushSelfOnly);
34 // NOLINTEND
35
36public:
37 // static functions
38 // NOLINTBEGIN
39 MCAPI static void pullToRide(::Actor& owner, ::Actor& other);
40
41 MCAPI static bool skipPush(::Actor& owner, ::Actor& other);
42 // NOLINTEND
43};
Definition Actor.h:104
Definition PushableComponent.h:11
Definition Vec3.h:10