Package org.bukkit.entity.minecart
Interface PoweredMinecart
- All Superinterfaces:
Audience
,CommandSender
,Entity
,HoverEventSource<HoverEvent.ShowEntity>
,Metadatable
,Minecart
,Nameable
,Permissible
,PersistentDataHolder
,Pointered
,ServerOperator
,Sound.Emitter
,Vehicle
Represents a powered minecart. A powered minecart moves on its own when a
player deposits
fuel
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
Entity.Spigot
-
Method Summary
Modifier and TypeMethodDescriptionint
getFuel()
Get the number of ticks until the minecart runs out of fuel.double
getPushX()
Get the x push of the minecart.double
getPushZ()
Get the z push of the minecart.void
setFuel
(int fuel) Set the number of ticks until the minecart runs out of fuel.void
setPushX
(double xPush) Set the x push of the minecart.void
setPushZ
(double zPush) Set the z push of the minecart.Methods inherited from interface net.kyori.adventure.audience.Audience
clearTitle, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendTitlePart, showBossBar, showTitle, stopSound, stopSound
Methods inherited from interface org.bukkit.command.CommandSender
getName, name, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage
Methods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, asHoverEvent, eject, fromMobSpawner, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getTicksLived, getTrackedPlayers, getType, getUniqueId, getVehicle, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isOnGround, isPersistent, isSilent, isTicking, isValid, isVisualFire, leaveVehicle, lockFreezeTicks, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync
Methods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEvent
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.entity.Minecart
getDamage, getDerailedVelocityMod, getDisplayBlock, getDisplayBlockData, getDisplayBlockOffset, getFlyingVelocityMod, getMaxSpeed, getMinecartMaterial, isSlowWhenEmpty, setDamage, setDerailedVelocityMod, setDisplayBlock, setDisplayBlockData, setDisplayBlockOffset, setFlyingVelocityMod, setMaxSpeed, setSlowWhenEmpty
Methods inherited from interface org.bukkit.Nameable
customName, customName, getCustomName, setCustomName
Methods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, permissionValue, permissionValue, recalculatePermissions, removeAttachment
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
Methods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFrom, pointers
Methods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
Methods inherited from interface org.bukkit.entity.Vehicle
getVelocity, setVelocity
-
Method Details
-
getFuel
int getFuel()Get the number of ticks until the minecart runs out of fuel.- Returns:
- Number of ticks until the minecart runs out of fuel
-
setFuel
void setFuel(int fuel) Set the number of ticks until the minecart runs out of fuel.- Parameters:
fuel
- Number of ticks until the minecart runs out of fuel
-
getPushX
double getPushX()Get the x push of the minecart.- Returns:
- The x push of the minecart
-
getPushZ
double getPushZ()Get the z push of the minecart.- Returns:
- The z push of the minecart
-
setPushX
void setPushX(double xPush) Set the x push of the minecart.- Parameters:
xPush
- The new x push of the minecart
-
setPushZ
void setPushZ(double zPush) Set the z push of the minecart.- Parameters:
zPush
- The new z push of the minecart
-