Examples of func_152113_b()


Examples of net.minecraft.entity.passive.EntityTameable.func_152113_b()

    public void interact(EntityInteractEvent event) {
        Entity entity = event.target;

        if (entity instanceof EntityTameable) {
            EntityTameable tameable = (EntityTameable) entity;
            String ownerId = tameable.func_152113_b();
            if (tameable.isTamed() && (ownerId == null || ownerId.trim().length() == 0)) {
                if (rand.nextInt(3) == 0) {
                    tameable.func_152115_b(event.entityPlayer.getUniqueID().toString());
                    playTameEffect(tameable, true);
                    tameable.func_70907_r().setSitting(true);
View Full Code Here

Examples of net.minecraft.entity.passive.EntityWolf.func_152113_b()

        {
            if (living instanceof EntityWolf)
            {
                EntityWolf var3 = (EntityWolf) living;

                if (var3.isTamed() && player.getDisplayName().equals(var3.func_152113_b()))
                {
                    return;
                }
            }
View Full Code Here

Examples of net.minecraft.entity.passive.EntityWolf.func_152113_b()

                while (var4.hasNext())
                {
                    EntityWolf var5 = (EntityWolf) var4.next();

                    if (var5.isTamed() && var5.getEntityToAttack() == null && player.getDisplayName().equals(var5.func_152113_b()) && (!par2 || !var5.isSitting()))
                    {
                        var5.setSitting(false);
                        var5.setTarget(living);
                    }
                }
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.