mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-01 07:36:35 +00:00
refactor: make Tile::getAABB return optional<AABB>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "../Headers/net.minecraft.world.entity.h"
|
||||
#include "../Headers/net.minecraft.world.item.h"
|
||||
#include "WebTile.h"
|
||||
#include "Util/AABB.h"
|
||||
|
||||
WebTile::WebTile(int id) : Tile(id, Material::web) {}
|
||||
|
||||
@@ -12,7 +13,7 @@ void WebTile::entityInside(Level* level, int x, int y, int z,
|
||||
|
||||
bool WebTile::isSolidRender(bool isServerLevel) { return false; }
|
||||
|
||||
AABB* WebTile::getAABB(Level* level, int x, int y, int z) { return NULL; }
|
||||
std::optional<AABB> WebTile::getAABB(Level* level, int x, int y, int z) { return std::nullopt; }
|
||||
|
||||
int WebTile::getRenderShape() { return Tile::SHAPE_CROSS_TEXTURE; }
|
||||
|
||||
@@ -25,4 +26,4 @@ int WebTile::getResource(int data, Random* random, int playerBonusLevel) {
|
||||
return Item::string->id;
|
||||
}
|
||||
|
||||
bool WebTile::isSilkTouchable() { return true; }
|
||||
bool WebTile::isSilkTouchable() { return true; }
|
||||
|
||||
Reference in New Issue
Block a user