示例#1
0
 private EnumGeckoType(
     int typeColor,
     int saplingOne,
     int saplingTwo,
     int itemColorLimbs,
     int itemColorBody,
     String textureSpots,
     String textureBody) {
   this.typeColor = typeColor;
   this.saplingTypes = Pair.with(saplingOne, saplingTwo);
   this.colors = Pair.with(itemColorLimbs, itemColorBody);
   this.textures =
       new ResourceLocation[] {
         new ResourceLocation(ClaySoldiersMod.MOD_ID, textureSpots),
         new ResourceLocation(ClaySoldiersMod.MOD_ID, textureBody)
       };
 }
示例#2
0
 private EnumHorseType(
     float health,
     float speed,
     int typeColor,
     ItemStack materialItem,
     String itemTexture,
     int itemColor,
     ResourceLocation... textures) {
   this.health = health;
   this.moveSpeed = speed;
   this.textures = textures;
   this.itemData = Pair.with(itemTexture, itemColor);
   this.typeColor = typeColor;
   this.item = materialItem;
 }