Package de.kumpelblase2.remoteentities.utilities

Examples of de.kumpelblase2.remoteentities.utilities.ParameterDataDeserializer


  @Override
  public void onAdd(RemoteEntity inEntity)
  {
    super.onAdd(inEntity);
    if(!(this.getEntityHandle() instanceof EntityVillager))
      throw new NotAVillagerException();

    this.m_villager = (EntityVillager)this.getEntityHandle();
  }
View Full Code Here


  @Deprecated
  public DesireSit(RemoteEntity inEntity)
  {
    super(inEntity);
    if(!(this.getEntityHandle() instanceof EntityTameableAnimal))
      throw new NotAnAnimalException();

    this.m_animal = (EntityTameableAnimal)this.getEntityHandle();
    this.m_type = DesireType.OCCASIONAL_URGE;
  }
View Full Code Here

  @Override
  public void onAdd(RemoteEntity inEntity)
  {
    super.onAdd(inEntity);
    if(!(this.getEntityHandle() instanceof EntityTameableAnimal))
      throw new NotAnAnimalException();

    this.m_animal = (EntityTameableAnimal)this.getEntityHandle();
  }
View Full Code Here

  @Deprecated
  public DesireSitOnBlock(RemoteEntity inEntity)
  {
    super(inEntity);
    if(!(this.getEntityHandle() instanceof EntityOcelot))
      throw new NotAnOcelotException();

    this.m_ocelot = (EntityOcelot)this.getEntityHandle();
    this.m_type = DesireType.OCCASIONAL_URGE;
  }
View Full Code Here

  @Override
  public void onAdd(RemoteEntity inEntity)
  {
    super.onAdd(inEntity);
    if(!(this.getEntityHandle() instanceof EntityOcelot))
      throw new NotAnOcelotException();

    this.m_ocelot = (EntityOcelot)this.getEntityHandle();
  }
View Full Code Here

  @Deprecated
  public DesireTameByRiding(RemoteEntity inEntity, double inSpeed)
  {
    super(inEntity);
    if(!(inEntity.getHandle() instanceof EntityHorse) && !inEntity.getFeatures().hasFeature(RidingFeature.class))
      throw new NotRideableException();

    this.m_speed = inSpeed;
    this.m_type = DesireType.PRIMAL_INSTINCT;
  }
View Full Code Here

  @Override
  public boolean shouldExecute()
  {
    if(!(this.getEntityHandle() instanceof EntityHorse) && !this.m_entity.getFeatures().hasFeature(RidingFeature.class))
      throw new NotRideableException();

    if(!this.canBeRidden() && this.getEntityHandle().passenger != null)
    {
      Vec3D vec = de.kumpelblase2.remoteentities.nms.RandomPositionGenerator.a(this.getEntityHandle(), 5, 4);
View Full Code Here

  @Deprecated
  public DesireProtectOwner(RemoteEntity inEntity, float inDistance, boolean inShouldCheckSight)
  {
    super(inEntity, inDistance, inShouldCheckSight);
    if(!(this.getEntityHandle() instanceof EntityTameableAnimal) && !this.getRemoteEntity().getFeatures().hasFeature(TamingFeature.class))
      throw new NotTameableException();

    this.m_animal = this.getEntityHandle();
    this.m_type = DesireType.PRIMAL_INSTINCT;
  }
View Full Code Here

  @Override
  public void onAdd(RemoteEntity inEntity)
  {
    super.onAdd(inEntity);
    if(!(this.getEntityHandle() instanceof EntityTameableAnimal) && !this.getRemoteEntity().getFeatures().hasFeature(TamingFeature.class))
      throw new NotTameableException();

    this.m_animal = this.getEntityHandle();
  }
View Full Code Here

  @Deprecated
  public DesireFollowTamer(RemoteEntity inEntity, float inMinDistance, float inMaxDistance)
  {
    super(inEntity);
    if(!(this.getEntityHandle() instanceof EntityTameableAnimal) && !this.getRemoteEntity().getFeatures().hasFeature(TamingFeature.class))
      throw new NotTameableException();

    this.m_animal = this.getEntityHandle();
    this.m_type = DesireType.FULL_CONCENTRATION;
    this.m_minDistance = inMinDistance;
    this.m_minDistanceSquared = this.m_minDistance * this.m_minDistance;
 
View Full Code Here

TOP

Related Classes of de.kumpelblase2.remoteentities.utilities.ParameterDataDeserializer

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.