org.bukkit.entity.minecart
Interface CommandMinecart

All Superinterfaces:
CommandSender, Entity, Metadatable, Minecart, Permissible, ServerOperator, Vehicle

public interface CommandMinecart
extends Minecart, CommandSender


Method Summary
 String getCommand()
          Gets the command that this CommandMinecart will run when activated.
 void setCommand(String command)
          Sets the command that this CommandMinecart will run when activated.
 void setName(String name)
          Sets the name of this CommandMinecart.
 
Methods inherited from interface org.bukkit.entity.Minecart
_INVALID_getDamage, _INVALID_setDamage, getDamage, getDerailedVelocityMod, getFlyingVelocityMod, getMaxSpeed, isSlowWhenEmpty, setDamage, setDerailedVelocityMod, setFlyingVelocityMod, setMaxSpeed, setSlowWhenEmpty
 
Methods inherited from interface org.bukkit.entity.Vehicle
getVelocity, setVelocity
 
Methods inherited from interface org.bukkit.entity.Entity
eject, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getWorld, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, teleport, teleport, teleport, teleport
 
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
 
Methods inherited from interface org.bukkit.command.CommandSender
getName, getServer, sendMessage, sendMessage
 
Methods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
 
Methods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
 

Method Detail

getCommand

String getCommand()
Gets the command that this CommandMinecart will run when activated. This will never return null. If the CommandMinecart does not have a command, an empty String will be returned instead.

Returns:
Command that this CommandMinecart will run when powered.

setCommand

void setCommand(String command)
Sets the command that this CommandMinecart will run when activated. Setting the command to null is the same as setting it to an empty String.

Parameters:
command - Command that this CommandMinecart will run when activated.

setName

void setName(String name)
Sets the name of this CommandMinecart. The name is used with commands that this CommandMinecart executes. Setting the name to null is the same as setting it to "@".

Parameters:
name - New name for this CommandMinecart.


Copyright © 2014. All rights reserved.