public interface CommandMinecart extends Minecart, CommandSender
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getCommand()
获取这个命令方块矿车激活时运行的命令。
|
void |
setCommand(java.lang.String command)
设置这个命令方块激活时运行的命令。
|
void |
setName(java.lang.String name)
设置这个命令方块矿车的名字。
|
getDamage, getDerailedVelocityMod, getDisplayBlock, getDisplayBlockOffset, getFlyingVelocityMod, getMaxSpeed, isSlowWhenEmpty, setDamage, setDerailedVelocityMod, setDisplayBlock, setDisplayBlockOffset, setFlyingVelocityMod, setMaxSpeed, setSlowWhenEmpty
getVelocity, setVelocity
addPassenger, addScoreboardTag, eject, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, setSilent, setTicksLived, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
getCustomName, setCustomName
java.lang.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.
void setCommand(java.lang.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.
command
- 当激活时这个命令方块将要运行的命令void setName(java.lang.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 "@".
name
- 这个命令方块的新名字