TU19: merge Minecraft.World/Blocks

This commit is contained in:
Tropical
2026-03-21 15:52:50 -05:00
parent f25cd66f4d
commit 9b6046cb83
242 changed files with 8083 additions and 4657 deletions

View File

@@ -0,0 +1,17 @@
#include "../Platform/stdafx.h"
#include "../Headers/net.minecraft.world.entity.h"
#include "../Headers/net.minecraft.world.phys.h"
#include "SoulSandTile.h"
SoulSandTile::SoulSandTile(int id) : Tile(id, Material::sand) {}
AABB* SoulSandTile::getAABB(Level* level, int x, int y, int z) {
float r = 2 / 16.0f;
return AABB::newTemp(x, y, z, x + 1, y + 1 - r, z + 1);
}
void SoulSandTile::entityInside(Level* level, int x, int y, int z,
std::shared_ptr<Entity> entity) {
entity->xd *= 0.4;
entity->zd *= 0.4;
}