Package net.glowstone.entity.objects
Class GlowMinecart
java.lang.Object
net.glowstone.entity.GlowEntity
net.glowstone.entity.GlowVehicle
net.glowstone.entity.objects.GlowMinecart
- All Implemented Interfaces:
net.kyori.adventure.audience.Audience
,net.kyori.adventure.pointer.Pointered
,net.kyori.adventure.sound.Sound.Emitter
,net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>
,org.bukkit.command.CommandSender
,org.bukkit.entity.Entity
,org.bukkit.entity.Minecart
,org.bukkit.entity.Vehicle
,org.bukkit.metadata.Metadatable
,org.bukkit.Nameable
,org.bukkit.permissions.Permissible
,org.bukkit.permissions.ServerOperator
,org.bukkit.persistence.PersistentDataHolder
- Direct Known Subclasses:
GlowMinecart.Command
,GlowMinecart.Explosive
,GlowMinecart.Hopper
,GlowMinecart.Powered
,GlowMinecart.Rideable
,GlowMinecart.Spawner
,GlowMinecart.Storage
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static enum
static class
static class
static class
static class
Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
org.bukkit.entity.Entity.Spigot
-
Field Summary
Fields inherited from class net.glowstone.entity.GlowEntity
active, airDrag, applyDragBeforeAccel, boundingBox, ENTITY_ID_NOBODY, entityId, gravityAccel, liquidDrag, location, metadata, passengerChanged, previousLocation, removed, server, slipMultiplier, teleported, ticksLived, vehicle, velocity, velocityChanged, world, worldLock
-
Constructor Summary
ConstructorDescriptionGlowMinecart
(org.bukkit.Location location, GlowMinecart.MinecartType minecartType) Creates a minecart. -
Method Summary
Modifier and TypeMethodDescriptionstatic GlowMinecart
create
(org.bukkit.Location location, GlowMinecart.MinecartType minecartType) Factory method that creates a minecart.List<com.flowpowered.network.Message>
Creates a list ofMessage
s which can be sent to a client to spawn this entity.boolean
entityInteract
(GlowPlayer player, InteractEntityMessage message) double
org.bukkit.util.Vector
org.bukkit.material.MaterialData
org.bukkit.block.data.BlockData
int
org.bukkit.util.Vector
double
@NotNull org.bukkit.Material
boolean
void
setDamage
(double damage) void
setDerailedVelocityMod
(org.bukkit.util.Vector derailedVelocityMod) void
setDisplayBlock
(org.bukkit.material.MaterialData displayBlock) void
setDisplayBlockData
(org.bukkit.block.data.BlockData displayBlockData) void
setDisplayBlockOffset
(int displayBlockOffset) void
setFlyingVelocityMod
(org.bukkit.util.Vector flyingVelocityMod) void
setMaxSpeed
(double maxSpeed) void
setSlowWhenEmpty
(boolean slowWhenEmpty) Methods inherited from class net.glowstone.entity.GlowEntity
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, collide, createAfterSpawnMessage, createUpdateMessage, customName, customName, damage, damage, damage, damage, eject, equals, fromMobSpawner, getBoundingBox, getCardinalFacing, getChunk, getCustomName, getCustomTags, getDismountLocation, getEffectivePermissions, getEntityId, getEntitySpawnReason, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getGravityAccel, getHeight, getLastDamageCause, getLeashedEntities, getLeashHolder, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getMetadata, getMetadata, getMountLocation, getName, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPersistentDataContainer, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getTicksLived, getTrackedPlayers, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasDefaultLandingBehavior, hasFriction, hasGravity, hashCode, hasMetadata, hasMoved, hasPermission, hasPermission, hasRotated, intersects, isCustomNameVisible, isDead, isEmpty, isFreezeTickingLocked, isFrozen, isGlowing, isInBubbleColumn, isInLava, isInMaterial, isInPowderedSnow, isInRain, isInsideVehicle, isInvulnerable, isInWater, isInWaterOrBubbleColumn, isInWaterOrRain, isInWaterOrRainOrBubbleColumn, isLeashed, isOnGround, isOp, isPermissionSet, isPermissionSet, isPersistent, isRemoved, isSilent, isTeleported, isTicking, isTouchingMaterial, isValid, isVisualFire, isWithinDistance, isWithinDistance, leaveVehicle, lockFreezeTicks, name, playEffect, playEffectKnownAndSelf, pulse, pulsePhysics, recalculatePermissions, remove, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, reset, sendMessage, sendMessage, sendMessage, sendMessage, setAirDrag, setApplyDragBeforeAccel, setBoundingBox, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setFriction, setGlowing, setGravity, setGravityAccel, setInvulnerable, setLastDamageCause, setLeashHolder, setLeashHolderUniqueId, setLiquidDrag, setMetadata, setOnGround, setOp, setPassenger, setPersistent, setPortalCooldown, setRawLocation, setRawLocation, setRotation, setSilent, setSize, setTicksLived, setUniqueId, setVelocity, setVisualFire, shouldSave, spawnAt, spigot, teamDisplayName, teleport, teleport, teleport, teleport, teleportToEnd, teleportToSpawn, toString, updateBoundingBox
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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, sendPlainMessage, sendRichMessage
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.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
-
Constructor Details
-
GlowMinecart
Creates a minecart.- Parameters:
location
- the locationminecartType
- the minecart type (i.e. the type of block carried, if any)
-
-
Method Details
-
create
public static GlowMinecart create(org.bukkit.Location location, GlowMinecart.MinecartType minecartType) Factory method that creates a minecart.- Parameters:
location
- the locationminecartType
- the minecart type (i.e. the type of block carried, if any)- Returns:
- The resultant minecart
-
createSpawnMessage
Description copied from class:GlowEntity
Creates a list ofMessage
s which can be sent to a client to spawn this entity. Implementations in concrete subclasses may return a shallowly immutable list.- Specified by:
createSpawnMessage
in classGlowEntity
- Returns:
- A list of messages which can spawn this entity.
-
getMinecartMaterial
@NotNull public @NotNull org.bukkit.Material getMinecartMaterial()- Specified by:
getMinecartMaterial
in interfaceorg.bukkit.entity.Minecart
-
entityInteract
- Overrides:
entityInteract
in classGlowEntity
-
getMinecartType
-
getDamage
public double getDamage()- Specified by:
getDamage
in interfaceorg.bukkit.entity.Minecart
-
setDamage
public void setDamage(double damage) - Specified by:
setDamage
in interfaceorg.bukkit.entity.Minecart
-
getMaxSpeed
public double getMaxSpeed()- Specified by:
getMaxSpeed
in interfaceorg.bukkit.entity.Minecart
-
setMaxSpeed
public void setMaxSpeed(double maxSpeed) - Specified by:
setMaxSpeed
in interfaceorg.bukkit.entity.Minecart
-
isSlowWhenEmpty
public boolean isSlowWhenEmpty()- Specified by:
isSlowWhenEmpty
in interfaceorg.bukkit.entity.Minecart
-
setSlowWhenEmpty
public void setSlowWhenEmpty(boolean slowWhenEmpty) - Specified by:
setSlowWhenEmpty
in interfaceorg.bukkit.entity.Minecart
-
getFlyingVelocityMod
public org.bukkit.util.Vector getFlyingVelocityMod()- Specified by:
getFlyingVelocityMod
in interfaceorg.bukkit.entity.Minecart
-
setFlyingVelocityMod
public void setFlyingVelocityMod(org.bukkit.util.Vector flyingVelocityMod) - Specified by:
setFlyingVelocityMod
in interfaceorg.bukkit.entity.Minecart
-
getDerailedVelocityMod
public org.bukkit.util.Vector getDerailedVelocityMod()- Specified by:
getDerailedVelocityMod
in interfaceorg.bukkit.entity.Minecart
-
setDerailedVelocityMod
public void setDerailedVelocityMod(org.bukkit.util.Vector derailedVelocityMod) - Specified by:
setDerailedVelocityMod
in interfaceorg.bukkit.entity.Minecart
-
getDisplayBlock
public org.bukkit.material.MaterialData getDisplayBlock()- Specified by:
getDisplayBlock
in interfaceorg.bukkit.entity.Minecart
-
setDisplayBlock
public void setDisplayBlock(org.bukkit.material.MaterialData displayBlock) - Specified by:
setDisplayBlock
in interfaceorg.bukkit.entity.Minecart
-
getDisplayBlockData
public org.bukkit.block.data.BlockData getDisplayBlockData()- Specified by:
getDisplayBlockData
in interfaceorg.bukkit.entity.Minecart
-
setDisplayBlockData
public void setDisplayBlockData(org.bukkit.block.data.BlockData displayBlockData) - Specified by:
setDisplayBlockData
in interfaceorg.bukkit.entity.Minecart
-
getDisplayBlockOffset
public int getDisplayBlockOffset()- Specified by:
getDisplayBlockOffset
in interfaceorg.bukkit.entity.Minecart
-
setDisplayBlockOffset
public void setDisplayBlockOffset(int displayBlockOffset) - Specified by:
setDisplayBlockOffset
in interfaceorg.bukkit.entity.Minecart
-