Files
Botania/src/main/java/vazkii/botania/client/model/ModelTinyPotato.java
T
2020-01-13 17:20:16 -06:00

39 lines
1.1 KiB
Java

/**
* This class was created by <Vazkii>. It's distributed as
* part of the Botania Mod. Get the Source Code in github:
* https://github.com/Vazkii/Botania
*
* Botania is Open Source and distributed under the
* Botania License: http://botaniamod.net/license.php
*
* File Created @ [Jul 18, 2014, 7:55:34 PM (GMT)]
*/
package vazkii.botania.client.model;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.vertex.IVertexBuilder;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.model.Model;
import net.minecraft.client.renderer.model.ModelRenderer;
public class ModelTinyPotato extends Model {
final ModelRenderer potato;
public ModelTinyPotato() {
super(RenderType::getEntitySolid);
textureWidth = 16;
textureHeight = 16;
potato = new ModelRenderer(this, 0, 0);
potato.addCuboid(0F, 0F, 0F, 4, 6, 4);
potato.setRotationPoint(-2F, 18F, -2F);
potato.setTextureSize(64, 32);
}
@Override
public void render(MatrixStack ms, IVertexBuilder buffer, int light, int overlay, float r, float g, float b, float a) {
potato.render(ms, buffer, light, overlay, r, g, b, a);
}
}