mirror of
https://github.com/celisej567/mcpe.git
synced 2026-01-04 14:09:47 +03:00
Entity, Renderer: Add (incomplete) pig, remake entity renderer
This commit is contained in:
26
source/world/entity/Pig.cpp
Normal file
26
source/world/entity/Pig.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
/********************************************************************
|
||||
Minecraft: Pocket Edition - Decompilation Project
|
||||
Copyright (C) 2023 iProgramInCpp
|
||||
|
||||
The following code is licensed under the BSD 1 clause license.
|
||||
SPDX-License-Identifier: BSD-1-Clause
|
||||
********************************************************************/
|
||||
|
||||
#include "Pig.hpp"
|
||||
#include "world/level/Level.hpp"
|
||||
|
||||
Pig::Pig(Level* level, float x, float y, float z) : Mob(level)
|
||||
{
|
||||
setSize(1.5f, 0.5f);
|
||||
field_84 = field_8C;
|
||||
|
||||
setPos(x, y, z);
|
||||
field_3C.x = x;
|
||||
field_3C.y = y;
|
||||
field_3C.z = z;
|
||||
}
|
||||
|
||||
Model *Pig::getModel()
|
||||
{
|
||||
return &m_model;
|
||||
}
|
||||
Reference in New Issue
Block a user