Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public ArmorStand createArmorStand(Location l, String name, ItemStack i) {
- EntityArmorStand eas = new EntityArmorStand(((CraftWorld) l.getWorld()).getHandle(), l.getX(), l.getY(),
- l.getZ());
- eas.yaw = l.getYaw();
- eas.pitch = l.getPitch();
- ArmorStand as = (ArmorStand) eas.getBukkitEntity();
- if (name != null) {
- as.setCustomName(name);
- as.setCustomNameVisible(true);
- }
- as.setSmall(true);
- as.setInvulnerable(true);
- as.setVisible(false);
- as.setBasePlate(false);
- as.setHelmet(i);
- as.setAI(false);
- as.setCollidable(false);
- as = ((CraftWorld) l.getWorld()).addEntity(((CraftArmorStand) as).getHandle(), SpawnReason.CUSTOM);
- return as;
- }
Advertisement
Add Comment
Please, Sign In to add comment