Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.entity.Minecart Interface Reference
Inheritance diagram for org.bukkit.entity.Minecart:
org.bukkit.entity.Vehicle org.bukkit.entity.Entity org.bukkit.metadata.Metadatable org.bukkit.entity.minecart.CommandMinecart org.bukkit.entity.minecart.ExplosiveMinecart org.bukkit.entity.minecart.HopperMinecart org.bukkit.entity.minecart.PoweredMinecart org.bukkit.entity.minecart.RideableMinecart org.bukkit.entity.minecart.SpawnerMinecart org.bukkit.entity.minecart.StorageMinecart org.bukkit.entity.PoweredMinecart org.bukkit.entity.StorageMinecart

Public Member Functions

void _INVALID_setDamage (int damage)
 
void setDamage (double damage)
 
int _INVALID_getDamage ()
 
double getDamage ()
 
double getMaxSpeed ()
 
void setMaxSpeed (double speed)
 
boolean isSlowWhenEmpty ()
 
void setSlowWhenEmpty (boolean slow)
 
Vector getFlyingVelocityMod ()
 
void setFlyingVelocityMod (Vector flying)
 
Vector getDerailedVelocityMod ()
 
void setDerailedVelocityMod (Vector derailed)
 
- Public Member Functions inherited from org.bukkit.entity.Vehicle
Vector getVelocity ()
 
void setVelocity (Vector vel)
 
- Public Member Functions inherited from org.bukkit.entity.Entity
Location getLocation ()
 
Location getLocation (Location loc)
 
boolean isOnGround ()
 
World getWorld ()
 
boolean teleport (Location location)
 
boolean teleport (Location location, TeleportCause cause)
 
boolean teleport (Entity destination)
 
boolean teleport (Entity destination, TeleportCause cause)
 
List< org.bukkit.entity.EntitygetNearbyEntities (double x, double y, double z)
 
int getEntityId ()
 
int getFireTicks ()
 
int getMaxFireTicks ()
 
void setFireTicks (int ticks)
 
void remove ()
 
boolean isDead ()
 
boolean isValid ()
 
Server getServer ()
 
abstract Entity getPassenger ()
 
abstract boolean setPassenger (Entity passenger)
 
abstract boolean isEmpty ()
 
abstract boolean eject ()
 
float getFallDistance ()
 
void setFallDistance (float distance)
 
void setLastDamageCause (EntityDamageEvent event)
 
EntityDamageEvent getLastDamageCause ()
 
UUID getUniqueId ()
 
int getTicksLived ()
 
void setTicksLived (int value)
 
void playEffect (EntityEffect type)
 
EntityType getType ()
 
boolean isInsideVehicle ()
 
boolean leaveVehicle ()
 
Entity getVehicle ()
 

Detailed Description

Represents a minecart entity.

Definition at line 8 of file Minecart.java.

Member Function Documentation

int org.bukkit.entity.Minecart._INVALID_getDamage ( )

This method exists for legacy reasons to provide backwards compatibility. It will not exist at runtime and should not be used under any circumstances.

void org.bukkit.entity.Minecart._INVALID_setDamage ( int  damage)

This method exists for legacy reasons to provide backwards compatibility. It will not exist at runtime and should not be used under any circumstances.

double org.bukkit.entity.Minecart.getDamage ( )

Gets a minecart's damage.

Returns
The damage
Vector org.bukkit.entity.Minecart.getDerailedVelocityMod ( )

Gets the derailed velocity modifier. Used for minecarts that are on the ground, but not on rails.

A derailed minecart's velocity is multiplied by this factor each tick.

Returns
derailed visible speed
Vector org.bukkit.entity.Minecart.getFlyingVelocityMod ( )

Gets the flying velocity modifier. Used for minecarts that are in mid-air. A flying minecart's velocity is multiplied by this factor each tick.

Returns
The vector factor
double org.bukkit.entity.Minecart.getMaxSpeed ( )

Gets the maximum speed of a minecart. The speed is unrelated to the velocity.

Returns
The max speed
boolean org.bukkit.entity.Minecart.isSlowWhenEmpty ( )

Returns whether this minecart will slow down faster without a passenger occupying it

Returns
Whether it decelerates faster
void org.bukkit.entity.Minecart.setDamage ( double  damage)

Sets a minecart's damage.

Parameters
damageover 40 to "kill" a minecart
void org.bukkit.entity.Minecart.setDerailedVelocityMod ( Vector  derailed)

Sets the derailed velocity modifier. Used for minecarts that are on the ground, but not on rails. A derailed minecart's velocity is multiplied by this factor each tick.

Parameters
derailedvisible speed
void org.bukkit.entity.Minecart.setFlyingVelocityMod ( Vector  flying)

Sets the flying velocity modifier. Used for minecarts that are in mid-air. A flying minecart's velocity is multiplied by this factor each tick.

Parameters
flyingvelocity modifier vector
void org.bukkit.entity.Minecart.setMaxSpeed ( double  speed)

Sets the maximum speed of a minecart. Must be nonnegative. Default is 0.4D.

Parameters
speedThe max speed
void org.bukkit.entity.Minecart.setSlowWhenEmpty ( boolean  slow)

Sets whether this minecart will slow down faster without a passenger occupying it

Parameters
slowWhether it will decelerate faster

The documentation for this interface was generated from the following file: