(EntityLivingBase aEntity)
| 2934 | return isGhastCreature(aEntity) || isCreeperCreature(aEntity) || UT.Reflection.getLowercaseClass(aEntity).contains("firebeetle"); |
| 2935 | } |
| 2936 | public static boolean isWereCreature(EntityLivingBase aEntity) { |
| 2937 | if (aEntity instanceof EntityPlayer) { |
| 2938 | if ("Bear989Sr".equalsIgnoreCase(aEntity.getCommandSenderName())) return T; |
| 2939 | IExtendedEntityProperties tWerewolfProperty = aEntity.getExtendedProperties("WerewolfPlayer"); |
| 2940 | if (tWerewolfProperty == null) return F; |
| 2941 | Object tReturned = UT.Reflection.callPublicMethod(tWerewolfProperty, "getWerewolf"); |
| 2942 | return tReturned instanceof Boolean && (Boolean)tReturned; |
| 2943 | } |
| 2944 | if (aEntity.getClass().getName().indexOf(".") < 0) return F; |
| 2945 | String tClassName = UT.Reflection.getLowercaseClass(aEntity); |
| 2946 | return tClassName.contains("wwolf") || tClassName.contains("yeti") || tClassName.contains("villagerwere") || tClassName.contains("wolfman") || tClassName.contains("werewolf") || tClassName.contains("alphawolf") || tClassName.contains("tamewere") || tClassName.contains("minotaur") || tClassName.contains("minoshroom"); |
| 2947 | } |
| 2948 | |
| 2949 | public static float getHeatDamageFromItem(ItemStack aStack) { |
| 2950 | OreDictItemData tData = OM.anydata(aStack); |
no test coverage detected