Advertisement
Creepinson

d

Jun 6th, 2017
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.57 KB | None | 0 0
  1.   private final ResourceLocation creepinoWhite = new ResourceLocation(RefStrings.MODID, "textures/entity/creepino/creepino_white.png");
  2.  
  3.             private final ResourceLocation creepinoRed = new ResourceLocation(RefStrings.MODID, "textures/entity/creepino/creepino_red.png");
  4.        
  5.             protected ResourceLocation getEntityTexture(Entity entity) {
  6.                 EntityCreepino thisentity = (EntityCreepino) entity;
  7.                 switch(thisentity.getTextureType()){
  8.                 case 0:
  9.                 return creepinoWhite;
  10.                 case 1:
  11.                 return creepinoRed;
  12.                 default:
  13.                 return creepinoWhite;
  14.                 }
  15.            
  16.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement