Package net.minecraft.server.v1_7_R1

Examples of net.minecraft.server.v1_7_R1.EntityLiving


      return false;
    else if(this.getEntityHandle() instanceof EntityTameableAnimal && ((EntityTameableAnimal)this.getEntityHandle()).isSitting())
      return false;
    else
    {
      Vec3D vector = RandomPositionGenerator.a(this.getEntityHandle(), 10, 7);
      if(vector == null)
        return false;
      else
      {
        this.m_xPos = vector.c;
View Full Code Here


     *
     */
    @EventHandler
    public void NPCCompleteDestination (NavigationCompleteEvent event) {
        if (event.getNPC() == npc && pushed) {
            EntityLiving handle = ((CraftLivingEntity) npc.getBukkitEntity()).getHandle();
            handle.yaw = returnLocation.getYaw();
            handle.pitch = returnLocation.getPitch();
            // !--- START NMS OBFUSCATED
            handle.az = handle.yaw; // The head's yaw
            // !--- END NMS OBFUSCATED
View Full Code Here

            return;
        }

        // If the target is not null, cast it to an NMS EntityLiving
        // as well for one of the two methods below
        EntityLiving nmsTarget = target != null ? ((CraftLivingEntity) target).getHandle()
                : null;

        ((CraftCreature) entity).getHandle().
                setGoalTarget(nmsTarget);
View Full Code Here

    private static void look(Entity entity, float yaw, float pitch) {
        net.minecraft.server.v1_7_R4.Entity handle = !(entity instanceof CraftEntity)?null:((CraftEntity)entity).getHandle();
        if (handle != null) {
            handle.yaw = yaw;
            if(entity instanceof EntityLiving) {
                EntityLiving livingHandle = (EntityLiving) entity;
                while (yaw < -180.0F) {
                    yaw += 360.0F;
                }
                while(yaw >= 180.0F) {
                    yaw -= 360.0F;
View Full Code Here

TOP

Related Classes of net.minecraft.server.v1_7_R1.EntityLiving

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.