Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hi, so I'm a beginner so I'm probably doing something wwrong, but can someone please explain me why is my entity not resizing (except the shadow)? Thanks!

Spoiler



package com.almeidowski.littleboii.entity.render;

import org.lwjgl.opengl.GL11;

import com.almeidowski.littleboii.Main;
import com.almeidowski.littleboii.entity.EntityBulletAnt;
import com.almeidowski.littleboii.entity.model.ModelBulletAnt;

import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minecraft.util.ResourceLocation;

public class RenderBulletAnt extends RenderLiving<EntityBulletAnt> 
{
	public static final ResourceLocation TEXTURES = new ResourceLocation(Main.MOD_ID + ":textures/entity/bulletant.png)");
	public RenderBulletAnt(RenderManager manager)
	{
		super(manager, new ModelBulletAnt(), 0.1F);
	}
	
	@Override
	protected ResourceLocation getEntityTexture(EntityBulletAnt entity)
	{
		return TEXTURES;
	}
	
	@Override
	protected void applyRotations(EntityBulletAnt entityLiving, float p_77043_2_, float rotationYaw, float partialTicks)
	{
		super.applyRotations(entityLiving, p_77043_2_, rotationYaw, partialTicks);
	}
	
	public void render(EntityBulletAnt parEntity, float par2, float par3, float par4, float par5, float par6, float par7)

	{

	        setRotationAngles(parEntity, par2, par3, par4, par5, par6, par7, parEntity);

	        GL11.glPushMatrix();
	        GL11.glTranslatef(4F, 4.5F-4.5F*parEntity.getScaleFactor(), 4F);
	        GL11.glScalef(parEntity.getScaleFactor(), parEntity.getScaleFactor(), parEntity.getScaleFactor());
	        ModelBulletAnt.render(par7);
	        GL11.glPopMatrix();

	  }

			private void setRotationAngles(EntityBulletAnt parEntity, float par2, float par3, float par4, float par5,
			float par6, float par7, EntityBulletAnt parEntity2) {
		
	}
}	


 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.