Examples of Sheep


Examples of com.mojang.minecraft.mob.Sheep

                     if(var6 == 4) {
                        var21 = new Spider(this.level, var15, var16, var17);
                     }

                     if(var6 == 5) {
                        var21 = new Sheep(this.level, var15, var16, var17);
                     }

                     if(this.level.isFree(((Mob)var21).bb)) {
                        ++var4;
                        this.level.addEntity((Entity)var21);
View Full Code Here

Examples of com.mojang.minecraft.mob.Sheep$1

      this.setSize(1.4F, 1.72F);
      this.setPos(var2, var3, var4);
      this.heightOffset = 1.72F;
      this.modelName = "sheep";
      this.textureName = "/mob/sheep.png";
      this.ai = new Sheep$1(this);
   }
View Full Code Here

Examples of games.stendhal.client.entity.Sheep

   */
  @Override
  protected void buildActions(final List<String> list) {
    super.buildActions(list);
    User user = User.get();
    Sheep sheep = (Sheep) entity;

    if (user != null) {
      if (!user.hasSheep()) {
        list.add(ActionType.OWN.getRepresentation());
      } else if ((sheep != null) && (user.getSheepID() == sheep.getID()
          .getObjectID())) {
        list.add(ActionType.LEAVE_SHEEP.getRepresentation());
      }
    }
  }
View Full Code Here

Examples of games.stendhal.server.entity.creature.Sheep

    assertThat(player.events().get(0).get("text"), equalTo("No player or pet named \"pet\" is currently logged in."));
 
   
    final Pet testPet = new Cat();
   
    final Sheep testSheep = new Sheep();

    player = PlayerTestHelper.createPlayer("player");
   
    StendhalRPZone stendhalRPZone = new StendhalRPZone("zone");
    MockStendlRPWorld.get().addRPZone(stendhalRPZone);
View Full Code Here

Examples of games.stendhal.server.entity.creature.Sheep

    SheepTestHelper.generateRPClasses();
    final RPAction action = new RPAction();
    final NameAction nameAction = new NameAction();
    action.put("target", "noname");
    action.put("args", "newname");
    final Sheep pet = new Sheep();
   
    zone.add(pet);
    final Player bob = PlayerTestHelper.createPlayer("bob");
    zone.add(bob);
   
    bob.setSheep(pet);
    nameAction.onAction(bob, action);
    assertThat(bob.events().get(0).get("text"), is("You don't own a pet called 'noname'"));
    assertThat(pet.getTitle(), is("sheep"));
  }
View Full Code Here

Examples of games.stendhal.server.entity.creature.Sheep

    SheepTestHelper.generateRPClasses();
    final RPAction action = new RPAction();
    final NameAction nameAction = new NameAction();
    action.put("target", "sheep");
    action.put("args", "newname");
    final Sheep pet = new Sheep();
   
    zone.add(pet);
    final Player bob = PlayerTestHelper.createPlayer("bob");
    zone.add(bob);
   
    bob.setSheep(pet);
    nameAction.onAction(bob, action);
    assertThat(bob.events().get(0).get("text"), is("You changed the name of 'sheep' to 'newname'"));
    assertThat(pet.getTitle(), is("newname"));
  }
View Full Code Here

Examples of games.stendhal.server.entity.creature.Sheep

    SheepTestHelper.generateRPClasses();
    final RPAction action = new RPAction();
    final NameAction nameAction = new NameAction();
    action.put("target", "sheep");
    action.put("args", "' newname '");
    final Sheep pet = new Sheep();
   
    zone.add(pet);
    final Player bob = PlayerTestHelper.createPlayer("bob");
    zone.add(bob);
   
    bob.setSheep(pet);
    nameAction.onAction(bob, action);
    assertThat(bob.events().get(0).get("text"), is("You changed the name of 'sheep' to 'newname'"));
    assertThat(pet.getTitle(), is("newname"));
  }
View Full Code Here

Examples of games.stendhal.server.entity.creature.Sheep

    SheepTestHelper.generateRPClasses();
    final RPAction action = new RPAction();
    final NameAction nameAction = new NameAction();
    action.put("target", "sheep");
    action.put("args", "sheep");
    final Sheep pet = new Sheep();
   
    zone.add(pet);
    final Player bob = PlayerTestHelper.createPlayer("bob");
    zone.add(bob);
   
View Full Code Here

Examples of games.stendhal.server.entity.creature.Sheep

    SheepTestHelper.generateRPClasses();
    final RPAction action = new RPAction();
    final NameAction nameAction = new NameAction();
    action.put("target", "oldname");
    action.put("args", "newname");
    final Sheep pet = new Sheep();
    pet.setTitle("oldname");
    zone.add(pet);
    final Player bob = PlayerTestHelper.createPlayer("bob");
    zone.add(bob);
   
    bob.setSheep(pet);
    nameAction.onAction(bob, action);
    assertThat(bob.events().get(0).get("text"), is("You changed the name of 'oldname' to 'newname'"));
    assertThat(pet.getTitle(), is("newname"));
  }
View Full Code Here

Examples of games.stendhal.server.entity.creature.Sheep

    SheepTestHelper.generateRPClasses();
    final RPAction action = new RPAction();
    final NameAction nameAction = new NameAction();
    action.put("target", "oldname");
    action.put("args", "sheep");
    final Sheep pet = new Sheep();
    pet.setTitle("oldname");
    zone.add(pet);
    final Player bob = PlayerTestHelper.createPlayer("bob");
    zone.add(bob);
   
    bob.setSheep(pet);
    nameAction.onAction(bob, action);
    assertThat(bob.events().get(0).get("text"), is("You changed the name of 'oldname' to 'sheep'"));
    assertThat(pet.getTitle(), is("sheep"));
  }
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.