Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
POIInstance.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/string/HashedString.h"
7#include "mc/world/actor/ai/village/POIType.h"
8#include "mc/world/level/BlockPos.h"
9
10// auto generated forward declare list
11// clang-format off
12class AABB;
13class BlockSource;
14class Random;
15class Village;
16// clang-format on
17
18class POIInstance {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 48, ::HashedString> mName;
23 ::ll::TypedStorage<8, 48, ::HashedString> mInitEvent;
24 ::ll::TypedStorage<8, 48, ::HashedString> mEndEvent;
25 ::ll::TypedStorage<8, 8, ::Village*> mVillage;
26 ::ll::TypedStorage<4, 12, ::BlockPos> mPosition;
27 ::ll::TypedStorage<8, 8, uint64> mOwnerCount;
28 ::ll::TypedStorage<8, 8, uint64> mOwnerCapacity;
29 ::ll::TypedStorage<8, 8, uint64> mWeight;
30 ::ll::TypedStorage<4, 4, float> mRadius;
31 ::ll::TypedStorage<4, 4, ::POIType> mType;
32 ::ll::TypedStorage<8, 48, ::HashedString> mSoundEvent;
33 ::ll::TypedStorage<2, 2, short> mArrivalFailuresCount;
34 ::ll::TypedStorage<1, 1, bool> mUseBoundingBox;
35 // NOLINTEND
36
37public:
38 // prevent constructor by default
39 POIInstance();
40
41public:
42 // member functions
43 // NOLINTBEGIN
45 ::BlockPos const& pos,
46 bool useBoundingBox,
47 ::std::string name,
48 ::POIType type,
49 float radius,
50 uint64 maxCapacity,
51 uint64 weight,
52 ::std::string soundEvent,
53 ::std::string initEvent,
54 ::std::string endEvent
55 );
56
57 MCNAPI ::AABB getSecondBlockFullAABB(::BlockSource& region);
58
59 MCNAPI void trySpawnParticles(::BlockSource& region, ::Random& random, int particleType) const;
60 // NOLINTEND
61
62public:
63 // constructor thunks
64 // NOLINTBEGIN
65 MCNAPI void* $ctor(
66 ::BlockPos const& pos,
67 bool useBoundingBox,
68 ::std::string name,
69 ::POIType type,
70 float radius,
71 uint64 maxCapacity,
72 uint64 weight,
73 ::std::string soundEvent,
74 ::std::string initEvent,
75 ::std::string endEvent
76 );
77 // NOLINTEND
78};
Definition AABB.h:18
Definition BlockPos.h:14
Definition BlockSource.h:72
MCAPI POIInstance(::BlockPos const &pos, bool useBoundingBox, ::std::string name, ::POIType type, float radius, uint64 maxCapacity, uint64 weight, ::std::string soundEvent, ::std::string initEvent, ::std::string endEvent)
MCAPI void trySpawnParticles(::BlockSource &region, ::Random &random, int particleType) const
MCAPI::AABB getSecondBlockFullAABB(::BlockSource &region)
MCAPI void * $ctor(::BlockPos const &pos, bool useBoundingBox, ::std::string name, ::POIType type, float radius, uint64 maxCapacity, uint64 weight, ::std::string soundEvent, ::std::string initEvent, ::std::string endEvent)
Definition Random.h:10
Definition Village.h:31