Java 类net.minecraft.server.EntityArmorStand 实例源码

项目:ProjectAres    文件:NMSHacks.java   
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);
    }
}
项目:Craftbukkit    文件:CraftLivingEntity.java   
public CraftLivingEntity(final CraftServer server, final EntityLiving entity) {
    super(server, entity);

    if (entity instanceof EntityInsentient || entity instanceof EntityArmorStand) {
        equipment = new CraftEntityEquipment(this);
    }
}
项目:CardinalPGM    文件:Watchers.java   
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
}
项目:SpigotSource    文件:CraftLivingEntity.java   
public CraftLivingEntity(final CraftServer server, final EntityLiving entity) {
    super(server, entity);

    if (entity instanceof EntityInsentient || entity instanceof EntityArmorStand) {
        equipment = new CraftEntityEquipment(this);
    }
}
项目:Craftbukkit    文件:CraftArmorStand.java   
public CraftArmorStand(CraftServer server, EntityArmorStand entity) {
    super(server, entity);
}
项目:Craftbukkit    文件:CraftArmorStand.java   
@Override
public EntityArmorStand getHandle() {
    return (EntityArmorStand) super.getHandle();
}
项目:SpigotSource    文件:CraftArmorStand.java   
public CraftArmorStand(CraftServer server, EntityArmorStand entity) {
    super(server, entity);
}
项目:SpigotSource    文件:CraftArmorStand.java   
@Override
public EntityArmorStand getHandle() {
    return (EntityArmorStand) super.getHandle();
}