LeviLamina
Loading...
Searching...
No Matches
ScriptBlockVolumeBase.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/scripting/lifetime_registry/StrongTypedObjectHandle.h"
7#include "mc/deps/scripting/lifetime_registry/WeakHandleFromThis.h"
8#include "mc/deps/scripting/runtime/Result_deprecated.h"
9#include "mc/scripting/modules/minecraft/ScriptBlockVolumeIterable.h"
10
11// auto generated forward declare list
12// clang-format off
14class BlockPos;
15class BoundingBox;
16class Vec3;
17namespace ScriptModuleMinecraft { class ScriptBlockLocationIterator; }
18namespace Scripting { class WeakLifetimeScope; }
19namespace Scripting { struct ClassBinding; }
20// clang-format on
21
22namespace ScriptModuleMinecraft {
23
24class ScriptBlockVolumeBase : public ::ScriptModuleMinecraft::ScriptBlockVolumeIterable,
25 public ::Scripting::WeakHandleFromThis<::ScriptModuleMinecraft::ScriptBlockVolumeBase> {
26public:
27 // member variables
28 // NOLINTBEGIN
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 ScriptBlockVolumeBase& operator=(ScriptBlockVolumeBase const&);
35 ScriptBlockVolumeBase(ScriptBlockVolumeBase const&);
36 ScriptBlockVolumeBase();
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 virtual ~ScriptBlockVolumeBase() /*override*/ = default;
42
43 virtual ::Scripting::StrongTypedObjectHandle<::ScriptModuleMinecraft::ScriptBlockLocationIterator>
44 getBlockLocationIterator(::Scripting::WeakLifetimeScope) = 0;
45
46 virtual ::std::unique_ptr<::BaseBlockLocationIterator> createBlockLocationIterator() = 0;
47 // NOLINTEND
48
49public:
50 // member functions
51 // NOLINTBEGIN
52 MCNAPI void forEach(::std::function<bool(::BlockPos const&)> callback) const;
53
54 MCNAPI ::Scripting::Result_deprecated<::BoundingBox> getBoundingBox() const;
55
56 MCNAPI int getCapacity() const;
57
58 MCNAPI ::Scripting::Result_deprecated<::Vec3> getMax() const;
59
60 MCNAPI ::Scripting::Result_deprecated<::Vec3> getMin() const;
61
62 MCNAPI ::Vec3 getSpan() const;
63
64 MCNAPI bool isInside(::Vec3 const& location) const;
65
66 MCNAPI void translate(::Vec3 const& delta);
67 // NOLINTEND
68
69public:
70 // static functions
71 // NOLINTBEGIN
72 MCNAPI static ::Scripting::ClassBinding bind();
73 // NOLINTEND
74
75public:
76 // virtual function thunks
77 // NOLINTBEGIN
78
79 // NOLINTEND
80
81public:
82 // vftables
83 // NOLINTBEGIN
84 MCNAPI static void** $vftable();
85 // NOLINTEND
86};
87
88} // namespace ScriptModuleMinecraft
Definition BaseBlockLocationIterator.h:8
Definition BlockPos.h:19
Definition BoundingBox.h:13
Definition ScriptBlockLocationIterator.h:21
static MCAPI ::Scripting::ClassBinding bind()
MCAPI void forEach(::std::function< bool(::BlockPos const &)> callback) const
MCAPI ::Scripting::Result_deprecated<::BoundingBox > getBoundingBox() const
MCAPI bool isInside(::Vec3 const &location) const
MCAPI ::Scripting::Result_deprecated<::Vec3 > getMin() const
MCAPI ::Scripting::Result_deprecated<::Vec3 > getMax() const
MCAPI void translate(::Vec3 const &delta)
Definition ScriptBlockVolumeIterable.h:7
Definition WeakHandleFromThis.h:8
Definition WeakLifetimeScope.h:7
Definition Vec3.h:10
Definition ClassBinding.h:19
Definition Alias.h:14