Interface ExplosiveMinecart
- All Superinterfaces:
Audience, CommandSender, DataComponentView, Entity, Explosive, Frictional, HoverEventSource<HoverEvent.ShowEntity>, Metadatable, Minecart, Nameable, Permissible, PersistentDataHolder, PersistentDataViewHolder, Pointered, ServerOperator, Sound.Emitter, Vehicle
-
Nested Class Summary
Nested classes/interfaces inherited from interface Entity
Entity.Spigot -
Method Summary
Modifier and TypeMethodDescriptionvoidexplode()Immediately explode this minecart with the power assumed by its current movement.voidexplode(double power) Immediately explode this minecart with the given power.floatGets the factor by which explosion yield increases based on Minecart speed.intGet the fuse ticks of this minecart.voidignite()Ignite this minecart's fuse naturally.booleanCheck whether or not this minecart's fuse has been ignited.voidsetExplosionSpeedFactor(float factor) Sets the factor by which explosion yield increases based on Minecart speed.voidsetFuseTicks(int ticks) Set the fuse ticks of this minecart.Methods inherited from interface Audience
clearResourcePacks, clearTitle, closeDialog, deleteMessage, deleteMessage, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendResourcePacks, sendResourcePacks, sendResourcePacks, sendTitlePart, showBossBar, showDialog, showTitle, stopSound, stopSoundMethods inherited from interface CommandSender
getName, name, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessage, sendRichMessageMethods inherited from interface DataComponentView
getData, getDataOrDefault, hasDataMethods inherited from interface Entity
addPassenger, addScoreboardTag, asHoverEvent, broadcastHurtAnimation, collidesAt, copy, copy, createSnapshot, eject, fromMobSpawner, getAsString, getBoundingBox, getChunk, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPickItemStack, getPistonMoveReaction, getPitch, getPortalCooldown, getPose, getScheduler, getScoreboardEntryName, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedBy, getTrackedPlayers, getType, getUniqueId, getVehicle, getVisualFire, getWidth, getWorld, getX, getY, getYaw, getZ, hasFixedPose, hasGravity, hasNoPhysics, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInPowderedSnow, isInRain, isInsideVehicle, isInvisible, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isInWorld, isOnGround, isPersistent, isSilent, isSneaking, isTicking, isTrackedBy, isUnderWater, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, lockFreezeTicks, lookAt, lookAt, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvisible, setInvulnerable, setLastDamageCause, setNoPhysics, setPassenger, setPersistent, setPortalCooldown, setPose, setPose, setRotation, setSilent, setSneaking, setTicksLived, setVisibleByDefault, setVisualFire, setVisualFire, spawnAt, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleport, teleport, teleportAsync, teleportAsync, teleportAsync, teleportAsync, wouldCollideUsingMethods inherited from interface Explosive
getYield, isIncendiary, setIsIncendiary, setYieldMethods inherited from interface Frictional
getFrictionState, setFrictionStateMethods inherited from interface HoverEventSource
asHoverEventMethods inherited from interface Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface Minecart
getDamage, getDerailedVelocityMod, getDisplayBlock, getDisplayBlockData, getDisplayBlockOffset, getFlyingVelocityMod, getMaxSpeed, getMinecartMaterial, isSlowWhenEmpty, setDamage, setDerailedVelocityMod, setDisplayBlock, setDisplayBlockData, setDisplayBlockOffset, setFlyingVelocityMod, setMaxSpeed, setSlowWhenEmptyMethods inherited from interface Nameable
customName, customName, getCustomName, setCustomNameMethods inherited from interface Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, permissionValue, permissionValue, recalculatePermissions, removeAttachmentMethods inherited from interface PersistentDataHolder
getPersistentDataContainerMethods inherited from interface Pointered
get, getOrDefault, getOrDefaultFrom, pointersMethods inherited from interface ServerOperator
isOp, setOpMethods inherited from interface Vehicle
getVelocity, setVelocity
-
Method Details
-
setFuseTicks
void setFuseTicks(int ticks) Set the fuse ticks of this minecart. If the fuse ticks are set to a non-zero value, this will ignite the explosive.- Parameters:
ticks- the ticks
-
getFuseTicks
int getFuseTicks()Get the fuse ticks of this minecart. If the fuse ticks reach 0, the minecart will explode.- Returns:
- the fuse ticks, or -1 if this minecart's fuse has not yet been ignited
-
getExplosionSpeedFactor
float getExplosionSpeedFactor()Gets the factor by which explosion yield increases based on Minecart speed.- Returns:
- increase factor
-
setExplosionSpeedFactor
void setExplosionSpeedFactor(float factor) Sets the factor by which explosion yield increases based on Minecart speed.- Parameters:
factor- new factor
-
ignite
void ignite()Ignite this minecart's fuse naturally. -
isIgnited
boolean isIgnited()Check whether or not this minecart's fuse has been ignited.- Returns:
- true if ignited, false otherwise
-
explode
void explode()Immediately explode this minecart with the power assumed by its current movement. -
explode
void explode(double power) Immediately explode this minecart with the given power.- Parameters:
power- the power to use. Must be positive and cannot exceed 25.0
-