LeviLamina
Loading...
Searching...
No Matches
BlockUtils.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/ShapeType.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class Block;
12class BlockPos;
13class BlockType;
14class IRandom;
15struct IntRange;
16// clang-format on
17
18namespace BlockUtils {
19// functions
20// NOLINTBEGIN
21MCAPI bool allowsNetherVegetation(::BlockType const& block);
22
23MCAPI bool canSee(::Actor const& actor, ::BlockPos const& pos, ::ShapeType obstructionType);
24
25MCAPI float getLiquidBlockHeight(::Block const& block, ::BlockPos const& blockPos);
26
27MCAPI float getParticleCountFromIntensity(float intensity);
28
29MCAPI ::BlockPos getRandomPos(::IRandom& random, ::BlockPos pos, ::IntRange const& xzRange, ::IntRange const& yRange);
30
31MCAPI bool isBeehiveBlock(::BlockType const& block);
32
33MCAPI bool isBeehiveInducingBlock(::Block const& block);
34
35MCAPI bool isDownwardFlowingLiquid(::Block const& block);
36
37MCAPI bool isFullFlowingLiquid(::Block const& block);
38
39MCAPI bool isLiquidSource(::Block const& block);
40
41MCAPI bool isWaterSource(::Block const& block);
42// NOLINTEND
43
44} // namespace BlockUtils
Definition Actor.h:125
Definition BlockPos.h:21
Definition BlockType.h:84
Definition Block.h:69
Definition IRandom.h:10
Definition IntRange.h:11