public FakeArmorStand(World world, @Nullable String name, boolean invisible, boolean marker, boolean small) { super(new EntityArmorStand(((CraftWorld) world).getHandle())); entity.setInvisible(invisible); entity.setMarker(marker); entity.setSmall(small); entity.setBasePlate(false); entity.setArms(false); if(name != null) { entity.setCustomName(name); entity.setCustomNameVisible(true); } }
public CraftLivingEntity(final CraftServer server, final EntityLiving entity) { super(server, entity); if (entity instanceof EntityInsentient || entity instanceof EntityArmorStand) { equipment = new CraftEntityEquipment(this); } }
public static List<DataWatcher.Item<?>> getDamageIndicator(double damage) { Class<EntityArmorStand> cl = EntityArmorStand.class; return Lists.newArrayList( INVISIBLE, // (0) Sets invisible new DataWatcher.Item<>(cl, getDataWatcher(Entity.class, "aA", String.class), "" + ChatColor.RED + ChatColor.BOLD + Math.round(damage / 0.2)), // (2) Custom Name new DataWatcher.Item<>(cl, getDataWatcher(Entity.class, "aB", Boolean.class), true),// (3) Custom Name visible new DataWatcher.Item<>(cl, EntityArmorStand.a, (byte) 0x10)); // (11) Marker Armor Stand }
public CraftArmorStand(CraftServer server, EntityArmorStand entity) { super(server, entity); }
@Override public EntityArmorStand getHandle() { return (EntityArmorStand) super.getHandle(); }