Package org.spout.vanilla.protocol.entity.object

Examples of org.spout.vanilla.protocol.entity.object.ObjectEntityProtocol


  public void onTick(float dt) {
  }

  @Override
  public void onAttached() {
    setEntityProtocol(new ObjectEntityProtocol(ObjectType.BOAT));
    super.onAttached();
  }
View Full Code Here


public class EnderCrystal extends Substance {
  private int health = 5; //Note: health doesn't seem to be used, it's here for the protocol

  @Override
  public void onAttached() {
    setEntityProtocol(new ObjectEntityProtocol(ObjectType.ENDER_CRYSTAL));
    super.onAttached();

    // Add metadata value for the health status of this crystal
    getOwner().add(MetadataComponent.class).addMeta(new Metadata<Integer>(Metadata.TYPE_INT, 8) {
      @Override
View Full Code Here

public class Minecart extends VehicleSubstance {
  @Override
  public void onAttached() {
    super.onAttached();
    setEntityProtocol(new ObjectEntityProtocol(ObjectType.MINECART));

    if (getAttachedCount() == 1) {
      // Set drops
      getOwner().add(DeathDrops.class).addDrop(new ItemStack(VanillaMaterials.MINECART, 1));
      // Set the displayed block
View Full Code Here

import org.spout.vanilla.protocol.entity.object.ObjectType;

public class EyeOfEnder extends Substance {
  @Override
  public void onAttached() {
    setEntityProtocol(new ObjectEntityProtocol(ObjectType.EYE_OF_ENDER));
    super.onAttached();
  }
View Full Code Here

public class FallingDragonEgg extends Substance {
  public static final int ID = 74;

  @Override
  public void onAttached() {
    setEntityProtocol(new ObjectEntityProtocol(ObjectType.DRAGON_EGG));
    super.onAttached();
  }
View Full Code Here

    getData().put(VanillaData.MAKES_FIRE, makesFire);
  }

  @Override
  public void onAttached() {
    setEntityProtocol(new ObjectEntityProtocol(ObjectType.PRIMED_TNT));
    holder = getOwner();
    super.onAttached();
    //TODO: Correct mass
    //getOwner().getPhysics().setShape(5f, new BoxShape(1, 1, 1));
  }
View Full Code Here

* A component that identifies the entity as a Fireworks Rocket.
*/
public class FireworksRocket extends Substance {
  @Override
  public void onAttached() {
    setEntityProtocol(new ObjectEntityProtocol(ObjectType.FIREWORKS_ROCKET));
    super.onAttached();
  }
View Full Code Here

public class FishingBob extends Substance implements Projectile {
  private Entity shooter;

  @Override
  public void onAttached() {
    setEntityProtocol(new ObjectEntityProtocol(ObjectType.FISHING_BOB));
    super.onAttached();
  }
View Full Code Here

public class XPBottle extends Substance implements Projectile {
  private Entity shooter;

  @Override
  public void onAttached() {
    setEntityProtocol(new ObjectEntityProtocol(ObjectType.EXP_BOTTLE));
    super.onAttached();
  }
View Full Code Here

public class Snowball extends Substance implements Projectile {
  private Entity shooter;

  @Override
  public void onAttached() {
    setEntityProtocol(new ObjectEntityProtocol(ObjectType.SNOWBALL));
    super.onAttached();
  }
View Full Code Here

TOP

Related Classes of org.spout.vanilla.protocol.entity.object.ObjectEntityProtocol

Copyright © 2018 www.massapicom. 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.