Lodestone.Level
Loading...
Searching...
No Matches
projects
Libraries
Level
include
Lodestone.Level
block
blocks
AirBlock.h
Go to the documentation of this file.
1
//
2
// Created by DexrnZacAttack on 1/22/26 using zPc-i2.
3
//
4
#ifndef LODESTONE_AIRBLOCK_H
5
#define LODESTONE_AIRBLOCK_H
6
#include "
Lodestone.Level/block/blocks/TranslucentBlock.h
"
7
8
namespace
lodestone::level::block::blocks
{
9
class
AirBlock
:
public
TranslucentBlock
{
10
public
:
11
constexpr
AirBlock
(
const
common::registry::Identifier
*
id
,
12
const
material::Material
&
material
,
const
properties::definition::ObjectDefinition
*definition)
13
:
TranslucentBlock
(id,
material
, definition) {
14
};
15
16
constexpr
bool
heightmapShouldIgnore
()
const override
{
17
return
true
;
18
};
19
20
bool
hasCollision
()
const override
{
21
return
false
;
22
}
23
};
24
}
25
26
#endif
// LODESTONE_AIRBLOCK_H
TranslucentBlock.h
lodestone::common::registry::Identifier
lodestone::level::block::blocks::AirBlock::heightmapShouldIgnore
constexpr bool heightmapShouldIgnore() const override
Definition
AirBlock.h:16
lodestone::level::block::blocks::AirBlock::hasCollision
bool hasCollision() const override
Definition
AirBlock.h:20
lodestone::level::block::blocks::AirBlock::AirBlock
constexpr AirBlock(const common::registry::Identifier *id, const material::Material &material, const properties::definition::ObjectDefinition *definition)
Definition
AirBlock.h:11
lodestone::level::block::blocks::TranslucentBlock::TranslucentBlock
constexpr TranslucentBlock(const lodestone::common::registry::Identifier *id, const lodestone::level::material::Material &material, const properties::definition::ObjectDefinition *definition)
Definition
TranslucentBlock.h:13
lodestone::level::material::Material
Definition
Material.h:11
lodestone::level::properties::definition::ObjectDefinition
Definition
ObjectDefinition.h:11
lodestone::level::block::blocks
Definition
AirBlock.h:8
lodestone::level::material
Definition
Material.cpp:6
Generated by
1.15.0