(ItemStack stack)
| 161 | } |
| 162 | |
| 163 | private EnumDyeColor getBaseColor(ItemStack stack) |
| 164 | { |
| 165 | NBTTagCompound nbttagcompound = stack.getSubCompound("BlockEntityTag", false); |
| 166 | EnumDyeColor enumdyecolor = null; |
| 167 | |
| 168 | if (nbttagcompound != null && nbttagcompound.hasKey("Base")) |
| 169 | { |
| 170 | enumdyecolor = EnumDyeColor.byDyeDamage(nbttagcompound.getInteger("Base")); |
| 171 | } |
| 172 | else |
| 173 | { |
| 174 | enumdyecolor = EnumDyeColor.byDyeDamage(stack.getMetadata()); |
| 175 | } |
| 176 | |
| 177 | return enumdyecolor; |
| 178 | } |
| 179 | } |
no test coverage detected