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

i keep getting an error in my renderer class for a entity but i can figure out how to fix it

image.png.3457c3f16470ec6484cabb619c06ca99.png

It is the bit at the top that is underlined and it says that i shouldn't be extending it but every source i found says i should and when i take it away it just causes another error

  • Author

Type parameter 'com.relaxingleg.tellytubbiemod.client.model.PoModel' is not within its bound; should extend 'net.minecraft.client.renderer.entity.model.EntityModel<com.relaxingleg.tellytubbiemod.entities.PoEntity>'

the error i get /\

public class PoModel<T extends PoEntity> extends EntityModel {

    private final ModelRenderer body;
    private final ModelRenderer lowerleg;
    private final ModelRenderer left;
    private final ModelRenderer right2;
    private final ModelRenderer upperleg;
    private final ModelRenderer left2;
    private final ModelRenderer right;
    private final ModelRenderer body2;
    private final ModelRenderer head;
    private final ModelRenderer arms;
    private final ModelRenderer left3;
    private final ModelRenderer right3;
    private final ModelRenderer ears;
    private final ModelRenderer left4;
    private final ModelRenderer right4;

    public PoModel() {
        textureWidth = 128;
        textureHeight = 128;

        body = new ModelRenderer(this);
        body.setRotationPoint(0.0F, 24.0F, 0.0F);


        lowerleg = new ModelRenderer(this);
        lowerleg.setRotationPoint(0.0F, 0.0F, 0.0F);
        body.addChild(lowerleg);


        left = new ModelRenderer(this);
        left.setRotationPoint(-1.0F, 0.0F, 0.0F);
        lowerleg.addChild(left);
        left.setTextureOffset(85, 12).addBox(-6.0F, -1.0F, -4.0F, 4.0F, 1.0F, 5.0F, 0.0F, false);
        left.setTextureOffset(86, 18).addBox(-6.0F, -4.0F, -3.0F, 4.0F, 3.0F, 4.0F, 0.0F, false);
        left.setTextureOffset(38, 32).addBox(-5.0F, -1.0F, -5.0F, 2.0F, 1.0F, 1.0F, 0.0F, false);
        left.setTextureOffset(8, 15).addBox(-5.0F, -4.0F, -4.0F, 2.0F, 3.0F, 1.0F, 0.0F, false);

        right2 = new ModelRenderer(this);
        right2.setRotationPoint(1.0F, 0.0F, 0.0F);
        lowerleg.addChild(right2);
        right2.setTextureOffset(8, 0).addBox(3.0F, -4.0F, -4.0F, 2.0F, 3.0F, 1.0F, 0.0F, false);
        right2.setTextureOffset(46, 37).addBox(2.0F, -1.0F, -4.0F, 4.0F, 1.0F, 5.0F, 0.0F, false);
        right2.setTextureOffset(34, 30).addBox(3.0F, -1.0F, -5.0F, 2.0F, 1.0F, 1.0F, 0.0F, false);
        right2.setTextureOffset(86, 0).addBox(2.0F, -4.0F, -3.0F, 4.0F, 3.0F, 4.0F, 0.0F, false);

        upperleg = new ModelRenderer(this);
        upperleg.setRotationPoint(0.0F, 0.0F, 0.0F);
        body.addChild(upperleg);


        left2 = new ModelRenderer(this);
        left2.setRotationPoint(-1.0F, 0.0F, 0.0F);
        upperleg.addChild(left2);
        left2.setTextureOffset(48, 86).addBox(-6.0F, -9.0F, -3.0F, 4.0F, 5.0F, 4.0F, 0.0F, false);

        right = new ModelRenderer(this);
        right.setRotationPoint(1.0F, 0.0F, 0.0F);
        upperleg.addChild(right);
        right.setTextureOffset(76, 36).addBox(2.0F, -9.0F, -3.0F, 4.0F, 5.0F, 4.0F, 0.0F, false);

        body2 = new ModelRenderer(this);
        body2.setRotationPoint(0.0F, 0.0F, 0.0F);
        body.addChild(body2);
        body2.setTextureOffset(55, 55).addBox(-7.0F, -25.0F, -3.0F, 14.0F, 16.0F, 5.0F, 0.0F, false);
        body2.setTextureOffset(61, 76).addBox(-7.0F, -25.0F, 2.0F, 14.0F, 13.0F, 1.0F, 0.0F, false);
        body2.setTextureOffset(0, 76).addBox(-7.0F, -25.0F, 3.0F, 14.0F, 11.0F, 2.0F, 0.0F, false);

        head = new ModelRenderer(this);
        head.setRotationPoint(0.0F, 0.0F, 0.0F);
        body.addChild(head);
        head.setTextureOffset(0, 15).addBox(-7.0F, -26.0F, -7.0F, 14.0F, 1.0F, 14.0F, 0.0F, false);
        head.setTextureOffset(76, 34).addBox(-7.0F, -26.0F, -8.0F, 14.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(32, 62).addBox(-8.0F, -26.0F, -7.0F, 1.0F, 1.0F, 14.0F, 0.0F, false);
        head.setTextureOffset(60, 53).addBox(-7.0F, -26.0F, 7.0F, 14.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(16, 61).addBox(7.0F, -26.0F, -7.0F, 1.0F, 1.0F, 14.0F, 0.0F, false);
        head.setTextureOffset(0, 25).addBox(7.0F, -27.0F, -8.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(56, 17).addBox(-7.0F, -42.0F, -9.0F, 14.0F, 16.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(0, 23).addBox(-8.0F, -27.0F, -8.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(0, 17).addBox(-8.0F, -27.0F, 7.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(56, 0).addBox(-7.0F, -42.0F, 8.0F, 14.0F, 16.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(0, 15).addBox(7.0F, -27.0F, 7.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(30, 30).addBox(-9.0F, -42.0F, -7.0F, 1.0F, 16.0F, 14.0F, 0.0F, false);
        head.setTextureOffset(0, 30).addBox(8.0F, -42.0F, -7.0F, 1.0F, 16.0F, 14.0F, 0.0F, false);
        head.setTextureOffset(8, 89).addBox(-9.0F, -41.0F, -8.0F, 1.0F, 14.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(4, 89).addBox(-8.0F, -41.0F, -9.0F, 1.0F, 14.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(0, 89).addBox(7.0F, -41.0F, -9.0F, 1.0F, 14.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(48, 60).addBox(7.0F, -41.0F, 8.0F, 1.0F, 14.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(40, 60).addBox(-8.0F, -41.0F, 8.0F, 1.0F, 14.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(36, 60).addBox(-9.0F, -41.0F, 7.0F, 1.0F, 14.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(46, 15).addBox(-9.0F, -40.0F, -9.0F, 1.0F, 12.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(46, 0).addBox(8.0F, -40.0F, -9.0F, 1.0F, 12.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(42, 15).addBox(-9.0F, -40.0F, 8.0F, 1.0F, 12.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(42, 0).addBox(8.0F, -40.0F, 8.0F, 1.0F, 12.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(10, 12).addBox(8.0F, -41.0F, -8.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(0, 30).addBox(8.0F, -40.0F, -8.0F, 1.0F, 13.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(32, 60).addBox(8.0F, -41.0F, 7.0F, 1.0F, 14.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(0, 10).addBox(-8.0F, -42.0F, -8.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(0, 8).addBox(7.0F, -42.0F, -8.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(0, 2).addBox(-8.0F, -42.0F, 7.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(0, 0).addBox(7.0F, -42.0F, 7.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(60, 34).addBox(-8.0F, -43.0F, -7.0F, 1.0F, 1.0F, 14.0F, 0.0F, false);
        head.setTextureOffset(60, 51).addBox(-7.0F, -43.0F, 7.0F, 14.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(0, 60).addBox(7.0F, -43.0F, -7.0F, 1.0F, 1.0F, 14.0F, 0.0F, false);
        head.setTextureOffset(60, 49).addBox(-7.0F, -43.0F, -8.0F, 14.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(0, 0).addBox(-7.0F, -44.0F, -7.0F, 14.0F, 1.0F, 14.0F, 0.0F, false);
        head.setTextureOffset(6, 8).addBox(-1.0F, -46.0F, -1.0F, 2.0F, 2.0F, 2.0F, 0.0F, false);
        head.setTextureOffset(16, 60).addBox(2.0F, -49.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false);
        head.setTextureOffset(0, 60).addBox(-3.0F, -48.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false);
        head.setTextureOffset(59, 37).addBox(-4.0F, -49.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false);
        head.setTextureOffset(48, 26).addBox(0.0F, -47.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false);
        head.setTextureOffset(48, 11).addBox(1.0F, -48.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false);
        head.setTextureOffset(46, 30).addBox(-2.0F, -47.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false);
        head.setTextureOffset(28, 30).addBox(3.0F, -50.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false);
        head.setTextureOffset(6, 23).addBox(-5.0F, -50.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false);
        head.setTextureOffset(46, 34).addBox(-5.0F, -51.0F, -1.0F, 10.0F, 1.0F, 2.0F, 0.0F, false);

        arms = new ModelRenderer(this);
        arms.setRotationPoint(0.0F, 0.0F, 0.0F);
        body.addChild(arms);


        left3 = new ModelRenderer(this);
        left3.setRotationPoint(-24.0F, 0.0F, 0.0F);
        arms.addChild(left3);
        left3.setTextureOffset(16, 30).addBox(12.0F, -19.0F, -2.0F, 4.0F, 10.0F, 4.0F, 0.0F, false);
        left3.setTextureOffset(0, 0).addBox(15.0F, -23.0F, -2.0F, 2.0F, 4.0F, 4.0F, 0.0F, false);
        left3.setTextureOffset(4, 30).addBox(14.0F, -22.0F, -2.0F, 1.0F, 3.0F, 4.0F, 0.0F, false);
        left3.setTextureOffset(0, 8).addBox(13.0F, -21.0F, -2.0F, 1.0F, 2.0F, 4.0F, 0.0F, false);
        left3.setTextureOffset(4, 37).addBox(12.0F, -20.0F, -2.0F, 1.0F, 1.0F, 4.0F, 0.0F, false);

        right3 = new ModelRenderer(this);
        right3.setRotationPoint(0.0F, 0.0F, 0.0F);
        arms.addChild(right3);
        right3.setTextureOffset(0, 15).addBox(7.0F, -23.0F, -2.0F, 2.0F, 4.0F, 4.0F, 0.0F, false);
        right3.setTextureOffset(32, 32).addBox(9.0F, -22.0F, -2.0F, 1.0F, 3.0F, 4.0F, 0.0F, false);
        right3.setTextureOffset(0, 23).addBox(10.0F, -21.0F, -2.0F, 1.0F, 2.0F, 4.0F, 0.0F, false);
        right3.setTextureOffset(32, 39).addBox(11.0F, -20.0F, -2.0F, 1.0F, 1.0F, 4.0F, 0.0F, false);
        right3.setTextureOffset(32, 77).addBox(8.0F, -19.0F, -2.0F, 4.0F, 10.0F, 4.0F, 0.0F, false);

        ears = new ModelRenderer(this);
        ears.setRotationPoint(0.0F, 0.0F, 0.0F);
        body.addChild(ears);


        left4 = new ModelRenderer(this);
        left4.setRotationPoint(0.0F, 0.0F, 0.0F);
        ears.addChild(left4);


        right4 = new ModelRenderer(this);
        right4.setRotationPoint(0.0F, 0.0F, 0.0F);
        ears.addChild(right4);

    }

    @Override
    public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha){
        body.render(matrixStack, buffer, packedLight, packedOverlay);
    }

    public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
        modelRenderer.rotateAngleX = x;
        modelRenderer.rotateAngleY = y;
        modelRenderer.rotateAngleZ = z;
    }

    @Override
    public void setRotationAngles(Entity entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) {

    }
}

the model class /\

public class PoEntity extends CreatureEntity {
    public PoEntity(EntityType<? extends CreatureEntity> type, World worldIn) {
        super(type, worldIn);
    }

    @Override
    protected void registerGoals() {
        super.registerGoals();
        this.goalSelector.addGoal(0, new SwimGoal(this));
        this.goalSelector.addGoal(1, new PanicGoal(this, 5.25d));
        this.goalSelector.addGoal(6, new WaterAvoidingRandomWalkingGoal(this, 1.0d));
        this.goalSelector.addGoal(7, new LookAtGoal(this, PlayerEntity.class, 6.0f));
    }

    @Override
    protected void registerAttributes() {
        super.registerAttributes();
        this.getAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(20.0d);
        this.getAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.23d);
    }
}

the entity class /\

 

athought it looks like an image i promaise it is not

 

  • Author
Quote

 

Type 'com.relaxingleg.tellytubbiemod.client.model.PoModel' does not have type parameters

The error/\

public class PoRenderer extends MobRenderer<PoEntity, PoModel<PoEntity>> {
    public PoRenderer(EntityRendererManager renderManagerIn) {
        super(renderManagerIn, new PoModel(), 0.5f);
    }

    @Override
    public ResourceLocation getEntityTexture(PoEntity entity) {
        return null;
    }
}

/\ the renderer class (where the error is)

public class PoModel extends EntityModel {

    private final ModelRenderer body;
    private final ModelRenderer lowerleg;
    private final ModelRenderer left;
    private final ModelRenderer right2;
    private final ModelRenderer upperleg;
    private final ModelRenderer left2;
    private final ModelRenderer right;
    private final ModelRenderer body2;
    private final ModelRenderer head;
    private final ModelRenderer arms;
    private final ModelRenderer left3;
    private final ModelRenderer right3;
    private final ModelRenderer ears;
    private final ModelRenderer left4;
    private final ModelRenderer right4;

    public PoModel() {
        textureWidth = 128;
        textureHeight = 128;

        body = new ModelRenderer(this);
        body.setRotationPoint(0.0F, 24.0F, 0.0F);


        lowerleg = new ModelRenderer(this);
        lowerleg.setRotationPoint(0.0F, 0.0F, 0.0F);
        body.addChild(lowerleg);


        left = new ModelRenderer(this);
        left.setRotationPoint(-1.0F, 0.0F, 0.0F);
        lowerleg.addChild(left);
        left.setTextureOffset(85, 12).addBox(-6.0F, -1.0F, -4.0F, 4.0F, 1.0F, 5.0F, 0.0F, false);
        left.setTextureOffset(86, 18).addBox(-6.0F, -4.0F, -3.0F, 4.0F, 3.0F, 4.0F, 0.0F, false);
        left.setTextureOffset(38, 32).addBox(-5.0F, -1.0F, -5.0F, 2.0F, 1.0F, 1.0F, 0.0F, false);
        left.setTextureOffset(8, 15).addBox(-5.0F, -4.0F, -4.0F, 2.0F, 3.0F, 1.0F, 0.0F, false);

        right2 = new ModelRenderer(this);
        right2.setRotationPoint(1.0F, 0.0F, 0.0F);
        lowerleg.addChild(right2);
        right2.setTextureOffset(8, 0).addBox(3.0F, -4.0F, -4.0F, 2.0F, 3.0F, 1.0F, 0.0F, false);
        right2.setTextureOffset(46, 37).addBox(2.0F, -1.0F, -4.0F, 4.0F, 1.0F, 5.0F, 0.0F, false);
        right2.setTextureOffset(34, 30).addBox(3.0F, -1.0F, -5.0F, 2.0F, 1.0F, 1.0F, 0.0F, false);
        right2.setTextureOffset(86, 0).addBox(2.0F, -4.0F, -3.0F, 4.0F, 3.0F, 4.0F, 0.0F, false);

        upperleg = new ModelRenderer(this);
        upperleg.setRotationPoint(0.0F, 0.0F, 0.0F);
        body.addChild(upperleg);


        left2 = new ModelRenderer(this);
        left2.setRotationPoint(-1.0F, 0.0F, 0.0F);
        upperleg.addChild(left2);
        left2.setTextureOffset(48, 86).addBox(-6.0F, -9.0F, -3.0F, 4.0F, 5.0F, 4.0F, 0.0F, false);

        right = new ModelRenderer(this);
        right.setRotationPoint(1.0F, 0.0F, 0.0F);
        upperleg.addChild(right);
        right.setTextureOffset(76, 36).addBox(2.0F, -9.0F, -3.0F, 4.0F, 5.0F, 4.0F, 0.0F, false);

        body2 = new ModelRenderer(this);
        body2.setRotationPoint(0.0F, 0.0F, 0.0F);
        body.addChild(body2);
        body2.setTextureOffset(55, 55).addBox(-7.0F, -25.0F, -3.0F, 14.0F, 16.0F, 5.0F, 0.0F, false);
        body2.setTextureOffset(61, 76).addBox(-7.0F, -25.0F, 2.0F, 14.0F, 13.0F, 1.0F, 0.0F, false);
        body2.setTextureOffset(0, 76).addBox(-7.0F, -25.0F, 3.0F, 14.0F, 11.0F, 2.0F, 0.0F, false);

        head = new ModelRenderer(this);
        head.setRotationPoint(0.0F, 0.0F, 0.0F);
        body.addChild(head);
        head.setTextureOffset(0, 15).addBox(-7.0F, -26.0F, -7.0F, 14.0F, 1.0F, 14.0F, 0.0F, false);
        head.setTextureOffset(76, 34).addBox(-7.0F, -26.0F, -8.0F, 14.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(32, 62).addBox(-8.0F, -26.0F, -7.0F, 1.0F, 1.0F, 14.0F, 0.0F, false);
        head.setTextureOffset(60, 53).addBox(-7.0F, -26.0F, 7.0F, 14.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(16, 61).addBox(7.0F, -26.0F, -7.0F, 1.0F, 1.0F, 14.0F, 0.0F, false);
        head.setTextureOffset(0, 25).addBox(7.0F, -27.0F, -8.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(56, 17).addBox(-7.0F, -42.0F, -9.0F, 14.0F, 16.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(0, 23).addBox(-8.0F, -27.0F, -8.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(0, 17).addBox(-8.0F, -27.0F, 7.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(56, 0).addBox(-7.0F, -42.0F, 8.0F, 14.0F, 16.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(0, 15).addBox(7.0F, -27.0F, 7.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(30, 30).addBox(-9.0F, -42.0F, -7.0F, 1.0F, 16.0F, 14.0F, 0.0F, false);
        head.setTextureOffset(0, 30).addBox(8.0F, -42.0F, -7.0F, 1.0F, 16.0F, 14.0F, 0.0F, false);
        head.setTextureOffset(8, 89).addBox(-9.0F, -41.0F, -8.0F, 1.0F, 14.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(4, 89).addBox(-8.0F, -41.0F, -9.0F, 1.0F, 14.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(0, 89).addBox(7.0F, -41.0F, -9.0F, 1.0F, 14.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(48, 60).addBox(7.0F, -41.0F, 8.0F, 1.0F, 14.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(40, 60).addBox(-8.0F, -41.0F, 8.0F, 1.0F, 14.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(36, 60).addBox(-9.0F, -41.0F, 7.0F, 1.0F, 14.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(46, 15).addBox(-9.0F, -40.0F, -9.0F, 1.0F, 12.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(46, 0).addBox(8.0F, -40.0F, -9.0F, 1.0F, 12.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(42, 15).addBox(-9.0F, -40.0F, 8.0F, 1.0F, 12.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(42, 0).addBox(8.0F, -40.0F, 8.0F, 1.0F, 12.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(10, 12).addBox(8.0F, -41.0F, -8.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(0, 30).addBox(8.0F, -40.0F, -8.0F, 1.0F, 13.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(32, 60).addBox(8.0F, -41.0F, 7.0F, 1.0F, 14.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(0, 10).addBox(-8.0F, -42.0F, -8.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(0, 8).addBox(7.0F, -42.0F, -8.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(0, 2).addBox(-8.0F, -42.0F, 7.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(0, 0).addBox(7.0F, -42.0F, 7.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(60, 34).addBox(-8.0F, -43.0F, -7.0F, 1.0F, 1.0F, 14.0F, 0.0F, false);
        head.setTextureOffset(60, 51).addBox(-7.0F, -43.0F, 7.0F, 14.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(0, 60).addBox(7.0F, -43.0F, -7.0F, 1.0F, 1.0F, 14.0F, 0.0F, false);
        head.setTextureOffset(60, 49).addBox(-7.0F, -43.0F, -8.0F, 14.0F, 1.0F, 1.0F, 0.0F, false);
        head.setTextureOffset(0, 0).addBox(-7.0F, -44.0F, -7.0F, 14.0F, 1.0F, 14.0F, 0.0F, false);
        head.setTextureOffset(6, 8).addBox(-1.0F, -46.0F, -1.0F, 2.0F, 2.0F, 2.0F, 0.0F, false);
        head.setTextureOffset(16, 60).addBox(2.0F, -49.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false);
        head.setTextureOffset(0, 60).addBox(-3.0F, -48.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false);
        head.setTextureOffset(59, 37).addBox(-4.0F, -49.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false);
        head.setTextureOffset(48, 26).addBox(0.0F, -47.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false);
        head.setTextureOffset(48, 11).addBox(1.0F, -48.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false);
        head.setTextureOffset(46, 30).addBox(-2.0F, -47.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false);
        head.setTextureOffset(28, 30).addBox(3.0F, -50.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false);
        head.setTextureOffset(6, 23).addBox(-5.0F, -50.0F, -1.0F, 2.0F, 1.0F, 2.0F, 0.0F, false);
        head.setTextureOffset(46, 34).addBox(-5.0F, -51.0F, -1.0F, 10.0F, 1.0F, 2.0F, 0.0F, false);

        arms = new ModelRenderer(this);
        arms.setRotationPoint(0.0F, 0.0F, 0.0F);
        body.addChild(arms);


        left3 = new ModelRenderer(this);
        left3.setRotationPoint(-24.0F, 0.0F, 0.0F);
        arms.addChild(left3);
        left3.setTextureOffset(16, 30).addBox(12.0F, -19.0F, -2.0F, 4.0F, 10.0F, 4.0F, 0.0F, false);
        left3.setTextureOffset(0, 0).addBox(15.0F, -23.0F, -2.0F, 2.0F, 4.0F, 4.0F, 0.0F, false);
        left3.setTextureOffset(4, 30).addBox(14.0F, -22.0F, -2.0F, 1.0F, 3.0F, 4.0F, 0.0F, false);
        left3.setTextureOffset(0, 8).addBox(13.0F, -21.0F, -2.0F, 1.0F, 2.0F, 4.0F, 0.0F, false);
        left3.setTextureOffset(4, 37).addBox(12.0F, -20.0F, -2.0F, 1.0F, 1.0F, 4.0F, 0.0F, false);

        right3 = new ModelRenderer(this);
        right3.setRotationPoint(0.0F, 0.0F, 0.0F);
        arms.addChild(right3);
        right3.setTextureOffset(0, 15).addBox(7.0F, -23.0F, -2.0F, 2.0F, 4.0F, 4.0F, 0.0F, false);
        right3.setTextureOffset(32, 32).addBox(9.0F, -22.0F, -2.0F, 1.0F, 3.0F, 4.0F, 0.0F, false);
        right3.setTextureOffset(0, 23).addBox(10.0F, -21.0F, -2.0F, 1.0F, 2.0F, 4.0F, 0.0F, false);
        right3.setTextureOffset(32, 39).addBox(11.0F, -20.0F, -2.0F, 1.0F, 1.0F, 4.0F, 0.0F, false);
        right3.setTextureOffset(32, 77).addBox(8.0F, -19.0F, -2.0F, 4.0F, 10.0F, 4.0F, 0.0F, false);

        ears = new ModelRenderer(this);
        ears.setRotationPoint(0.0F, 0.0F, 0.0F);
        body.addChild(ears);


        left4 = new ModelRenderer(this);
        left4.setRotationPoint(0.0F, 0.0F, 0.0F);
        ears.addChild(left4);


        right4 = new ModelRenderer(this);
        right4.setRotationPoint(0.0F, 0.0F, 0.0F);
        ears.addChild(right4);

    }

    @Override
    public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue, float alpha){
        body.render(matrixStack, buffer, packedLight, packedOverlay);
    }

    public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
        modelRenderer.rotateAngleX = x;
        modelRenderer.rotateAngleY = y;
        modelRenderer.rotateAngleZ = z;
    }

    @Override
    public void setRotationAngles(Entity entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) {

    }
}

the model class /\ (where the raw type was but isnt anymore)

public class PoEntity extends CreatureEntity {
    public PoEntity(EntityType<? extends CreatureEntity> type, World worldIn) {
        super(type, worldIn);
    }

    @Override
    protected void registerGoals() {
        super.registerGoals();
        this.goalSelector.addGoal(0, new SwimGoal(this));
        this.goalSelector.addGoal(1, new PanicGoal(this, 5.25d));
        this.goalSelector.addGoal(6, new WaterAvoidingRandomWalkingGoal(this, 1.0d));
        this.goalSelector.addGoal(7, new LookAtGoal(this, PlayerEntity.class, 6.0f));
    }

    @Override
    protected void registerAttributes() {
        super.registerAttributes();
        this.getAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(20.0d);
        this.getAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.23d);
    }
}

The entity class/\

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.