Search in sources :

Example 6 with EntityHorseAbstract

use of net.minecraft.server.v1_13_R2.EntityHorseAbstract in project Citizens2 by CitizensDev.

the class NMSImpl method openHorseScreen.

@Override
public void openHorseScreen(Tameable horse, Player equipper) {
    EntityLiving handle = NMSImpl.getHandle(horse);
    EntityHuman equipperHandle = (EntityHuman) NMSImpl.getHandle(equipper);
    if (handle == null || equipperHandle == null)
        return;
    boolean wasTamed = horse.isTamed();
    horse.setTamed(true);
    ((EntityHorseAbstract) handle).e(equipperHandle);
    horse.setTamed(wasTamed);
}
Also used : EntityHuman(net.minecraft.server.v1_15_R1.EntityHuman) EntityLiving(net.minecraft.server.v1_15_R1.EntityLiving) EntityHorseAbstract(net.minecraft.server.v1_15_R1.EntityHorseAbstract)

Aggregations

EntityHorseAbstract (net.minecraft.server.v1_11_R1.EntityHorseAbstract)1 EntityLiving (net.minecraft.server.v1_11_R1.EntityLiving)1 EntityHorseAbstract (net.minecraft.server.v1_12_R1.EntityHorseAbstract)1 EntityLiving (net.minecraft.server.v1_12_R1.EntityLiving)1 EntityHorseAbstract (net.minecraft.server.v1_13_R2.EntityHorseAbstract)1 EntityLiving (net.minecraft.server.v1_13_R2.EntityLiving)1 EntityHorseAbstract (net.minecraft.server.v1_14_R1.EntityHorseAbstract)1 EntityLiving (net.minecraft.server.v1_14_R1.EntityLiving)1 EntityHorseAbstract (net.minecraft.server.v1_15_R1.EntityHorseAbstract)1 EntityHuman (net.minecraft.server.v1_15_R1.EntityHuman)1 EntityLiving (net.minecraft.server.v1_15_R1.EntityLiving)1 EntityHorseAbstract (net.minecraft.server.v1_16_R3.EntityHorseAbstract)1 EntityHuman (net.minecraft.server.v1_16_R3.EntityHuman)1 EntityLiving (net.minecraft.server.v1_16_R3.EntityLiving)1