mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-06 03:43:38 +00:00
20 lines
417 B
C++
20 lines
417 B
C++
#include "Model.h"
|
|
|
|
#include "TexOffs.h"
|
|
#include "minecraft/client/model/geom/Model.h"
|
|
|
|
Model::Model() {
|
|
riding = false;
|
|
young = true;
|
|
texWidth = 64;
|
|
texHeight = 32;
|
|
}
|
|
|
|
void Model::setMapTex(std::wstring id, int x, int y) {
|
|
mappedTexOffs[id] = new TexOffs(x, y);
|
|
}
|
|
|
|
TexOffs* Model::getMapTex(std::wstring id) {
|
|
// 4J-PB - assuming there will always be this one
|
|
return mappedTexOffs[id];
|
|
} |