Examples of addBoolMeta()


Examples of org.spout.vanilla.component.entity.misc.MetadataComponent.addBoolMeta()

    // Add metadata properties of the enderman
    MetadataComponent metadata = getOwner().add(MetadataComponent.class);
    metadata.addMeta(Metadata.TYPE_BYTE, 16, VanillaData.HELD_MATERIAL);
    metadata.addMeta(Metadata.TYPE_BYTE, 17, VanillaData.HELD_MATERIAL_DATA);
    metadata.addBoolMeta(18, VanillaData.AGGRESSIVE);
  }

  public Material getHeldMaterial() {
    return VanillaMaterials.getMaterial(getData().get(VanillaData.HELD_MATERIAL));
  }
View Full Code Here

Examples of org.spout.vanilla.component.entity.misc.MetadataComponent.addBoolMeta()

    getAI().registerAction(new ActionAttack(getAI()));

    // Metadata values
    MetadataComponent meta = getOwner().add(MetadataComponent.class);
    meta.addMeta(Metadata.TYPE_BYTE, 16, VanillaData.STATE);
    meta.addBoolMeta(17, VanillaData.CHARGED);
  }

  @Override
  public void onTick(float dt) {
    super.onTick(dt);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.