-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
855 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
463 changes: 463 additions & 0 deletions
463
src/main/java/its_meow/betteranimalsplus/client/model/ModelZotzpyre.java
Large diffs are not rendered by default.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
src/main/java/its_meow/betteranimalsplus/client/renderer/entity/RenderZotzpyre.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package its_meow.betteranimalsplus.client.renderer.entity; | ||
|
||
import its_meow.betteranimalsplus.client.model.ModelZotzpyre; | ||
import its_meow.betteranimalsplus.client.renderer.entity.layers.LayerEyes; | ||
import its_meow.betteranimalsplus.common.entity.EntityZotzpyre; | ||
import its_meow.betteranimalsplus.init.ModTextures; | ||
import net.minecraft.client.renderer.entity.RenderLiving; | ||
import net.minecraft.client.renderer.entity.RenderManager; | ||
import net.minecraft.util.ResourceLocation; | ||
|
||
public class RenderZotzpyre extends RenderLiving<EntityZotzpyre> { | ||
|
||
public RenderZotzpyre(RenderManager rendermanager) { | ||
super(rendermanager, new ModelZotzpyre(), 0.4F); | ||
this.addLayer(new LayerEyes<EntityZotzpyre>(this, ModTextures.zotzpyre_eyes)); | ||
} | ||
|
||
@Override | ||
protected ResourceLocation getEntityTexture(EntityZotzpyre entity) { | ||
switch(entity.getTypeNumber()) { | ||
case 1: | ||
return ModTextures.zotzpyre_1; | ||
case 2: | ||
return ModTextures.zotzpyre_2; | ||
case 3: | ||
return ModTextures.zotzpyre_3; | ||
case 4: | ||
return ModTextures.zotzpyre_4; | ||
case 5: | ||
return ModTextures.zotzpyre_5; | ||
default: | ||
return ModTextures.zotzpyre_1; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.