the whole game

This commit is contained in:
Kolyah35
2026-03-02 22:04:18 +03:00
parent 816e9060b4
commit f0617a5d22
2069 changed files with 581500 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
#ifndef NET_MINECRAFT_WORLD_LEVEL_TILE__MultiTextureTile_H__
#define NET_MINECRAFT_WORLD_LEVEL_TILE__MultiTextureTile_H__
//package net.minecraft.world.level.tile;
#include "../material/Material.h"
class MultiTextureTile: public Tile
{
typedef Tile super;
public:
MultiTextureTile(int id, const int* textures, int texCount, const Material* material)
: super(id, textures[0], material),
_textures(textures),
_textureCount(texCount)
{
}
virtual int getTexture(int face, int data) {
if (data >= 0 && data < _textureCount)
{
return _textures[data];
}
return tex;
}
static int getTileDataForItemAuxValue(int auxValue) {
return (auxValue & 0xf);
}
protected:
int getSpawnResourcesAuxValue(int data) {
return data;
}
static int getItemAuxValueForTileData(int data) {
return data;
}
const int* _textures;
int _textureCount;
};
#endif /*NET_MINECRAFT_WORLD_LEVEL_TILE__ClothTile_H__*/