Skip to content
LeviMC
English
AutoLightDark
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;
13// clang-format on
14
15namespace BlockUtils {
16// functions
17// NOLINTBEGIN
18MCAPI bool canSee(::Actor const& actor, ::BlockPos const& pos, ::ShapeType obstructionType);
19
20MCNAPI float getLiquidBlockHeight(::Block const& block, ::BlockPos const& blockPos);
21
22MCNAPI bool isBeehiveInducingBlock(::Block const& block);
23
24MCNAPI bool isDownwardFlowingLiquid(::Block const& block);
25
26MCNAPI bool isFullFlowingLiquid(::Block const& block);
27
28MCAPI bool isLiquidSource(::Block const& block);
29// NOLINTEND
30
31} // namespace BlockUtils
Definition Actor.h:116
Definition BlockPos.h:14
Definition Block.h:42