Esempio n. 1
0
 @Override
 public boolean isSupertypeOf(final EntityData<?> e) {
   if (!(e instanceof ThrownPotionData)) return false;
   final ThrownPotionData d = (ThrownPotionData) e;
   if (types != null) {
     return d.types != null && ItemType.isSubset(types, d.types);
   }
   return true;
 }