You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Java
		
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Java
		
	
package net.minecraft.entity.item;
 | 
						|
 | 
						|
import net.minecraft.entity.player.EntityPlayer;
 | 
						|
import net.minecraft.world.World;
 | 
						|
 | 
						|
public class EntityMinecartEmpty extends EntityMinecart
 | 
						|
{
 | 
						|
    private static final String __OBFID = "CL_00001677";
 | 
						|
 | 
						|
    public EntityMinecartEmpty(World p_i1722_1_)
 | 
						|
    {
 | 
						|
        super(p_i1722_1_);
 | 
						|
    }
 | 
						|
 | 
						|
    public EntityMinecartEmpty(World p_i1723_1_, double p_i1723_2_, double p_i1723_4_, double p_i1723_6_)
 | 
						|
    {
 | 
						|
        super(p_i1723_1_, p_i1723_2_, p_i1723_4_, p_i1723_6_);
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * First layer of player interaction
 | 
						|
     */
 | 
						|
    public boolean interactFirst(EntityPlayer player)
 | 
						|
    {
 | 
						|
        if(net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(new net.minecraftforge.event.entity.minecart.MinecartInteractEvent(this, player))) return true;
 | 
						|
        if (this.riddenByEntity != null && this.riddenByEntity instanceof EntityPlayer && this.riddenByEntity != player)
 | 
						|
        {
 | 
						|
            return true;
 | 
						|
        }
 | 
						|
        else if (this.riddenByEntity != null && this.riddenByEntity != player)
 | 
						|
        {
 | 
						|
            return false;
 | 
						|
        }
 | 
						|
        else
 | 
						|
        {
 | 
						|
            if (!this.worldObj.isRemote)
 | 
						|
            {
 | 
						|
                player.mountEntity(this);
 | 
						|
            }
 | 
						|
 | 
						|
            return true;
 | 
						|
        }
 | 
						|
    }
 | 
						|
 | 
						|
    public int getMinecartType()
 | 
						|
    {
 | 
						|
        return 0;
 | 
						|
    }
 | 
						|
} |