CommandSender
, Entity
, Metadatable
, Minecart
, Nameable
, Permissible
, PersistentDataHolder
, ServerOperator
, Vehicle
public interface CommandMinecart extends Minecart
Entity.Spigot
Modifier and Type | Method | Description |
---|---|---|
@NotNull String |
getCommand() |
Gets the command that this CommandMinecart will run when activated.
|
void |
setCommand(@Nullable String command) |
Sets the command that this CommandMinecart will run when activated.
|
void |
setName(@Nullable String name) |
Sets the name of this CommandMinecart.
|
getName, sendMessage, sendMessage, sendMessage, sendMessage
addPassenger, addScoreboardTag, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isPersistent, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, spigot, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync
getMetadata, hasMetadata, removeMetadata, setMetadata
getDamage, getDerailedVelocityMod, getDisplayBlock, getDisplayBlockData, getDisplayBlockOffset, getFlyingVelocityMod, getMaxSpeed, isSlowWhenEmpty, setDamage, setDerailedVelocityMod, setDisplayBlock, setDisplayBlockData, setDisplayBlockOffset, setFlyingVelocityMod, setMaxSpeed, setSlowWhenEmpty
getCustomName, setCustomName
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
getPersistentDataContainer
isOp, setOp
getVelocity, setVelocity
@NotNull @NotNull String getCommand()
void setCommand(@Nullable @Nullable String command)
command
- Command that this CommandMinecart will run when
activated.void setName(@Nullable @Nullable String name)
name
- New name for this CommandMinecart.Copyright © 2020. All rights reserved.