public MCItemMeta getItemMeta(MCMaterial material) {
   if (material == null) {
     return null;
   }
   ItemMeta im = f.getItemMeta(Material.getMaterial(material.getType()));
   return BukkitConvertor.BukkitGetCorrectMeta(im);
 }
예제 #2
0
  public List<MCEntity> getNearbyEntities(double x, double y, double z) {
    List<Entity> lst = e.getNearbyEntities(x, y, z);
    List<MCEntity> retn = new ArrayList<MCEntity>();

    for (Entity e : lst) {
      retn.add(BukkitConvertor.BukkitGetCorrectEntity(e));
    }

    return retn;
  }
예제 #3
0
 public MCEntity getPassenger() {
   return BukkitConvertor.BukkitGetCorrectEntity(e.getPassenger());
 }
 public MCItemMeta asMetaFor(MCItemMeta meta, MCMaterial material) {
   ItemMeta bmeta = ((BukkitMCItemMeta) meta).asItemMeta();
   Material bmat = Material.getMaterial(material.getType());
   return BukkitConvertor.BukkitGetCorrectMeta(f.asMetaFor(bmeta, bmat));
 }
 public MCItemMeta asMetaFor(MCItemMeta meta, MCItemStack stack) {
   ItemMeta bmeta = ((BukkitMCItemMeta) meta).asItemMeta();
   ItemStack bstack = ((BukkitMCItemStack) stack).asItemStack();
   return BukkitConvertor.BukkitGetCorrectMeta(f.asMetaFor(bmeta, bstack));
 }