public abstract class GlowMinecart extends GlowVehicle implements org.bukkit.entity.Minecart
Modifier and Type | Class and Description |
---|---|
static class |
GlowMinecart.Command |
static class |
GlowMinecart.Explosive |
static class |
GlowMinecart.Hopper |
static class |
GlowMinecart.MinecartType |
static class |
GlowMinecart.Powered |
static class |
GlowMinecart.Rideable |
static class |
GlowMinecart.Spawner |
static class |
GlowMinecart.Storage |
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 and Description |
---|
GlowMinecart(org.bukkit.Location location,
GlowMinecart.MinecartType minecartType)
Creates a minecart.
|
Modifier and Type | Method and Description |
---|---|
static GlowMinecart |
create(org.bukkit.Location location,
GlowMinecart.MinecartType minecartType)
Factory method that creates a minecart.
|
List<com.flowpowered.network.Message> |
createSpawnMessage()
Creates a list of
Message s which can be sent to a client to spawn this entity. |
boolean |
entityInteract(GlowPlayer player,
InteractEntityMessage message) |
double |
getDamage() |
org.bukkit.util.Vector |
getDerailedVelocityMod() |
org.bukkit.material.MaterialData |
getDisplayBlock() |
int |
getDisplayBlockOffset() |
org.bukkit.util.Vector |
getFlyingVelocityMod() |
double |
getMaxSpeed() |
GlowMinecart.MinecartType |
getMinecartType() |
boolean |
isSlowWhenEmpty() |
void |
setDamage(double damage) |
void |
setDerailedVelocityMod(org.bukkit.util.Vector derailedVelocityMod) |
void |
setDisplayBlock(org.bukkit.material.MaterialData displayBlock) |
void |
setDisplayBlockOffset(int displayBlockOffset) |
void |
setFlyingVelocityMod(org.bukkit.util.Vector flyingVelocityMod) |
void |
setMaxSpeed(double maxSpeed) |
void |
setSlowWhenEmpty(boolean slowWhenEmpty) |
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, collide, createAfterSpawnMessage, createUpdateMessage, damage, damage, damage, damage, eject, equals, fromMobSpawner, getCardinalFacing, getChunk, getCustomName, getCustomTags, getDismountLocation, getEffectivePermissions, getEntityId, getFacing, getFallDistance, getFireTicks, getGravityAccel, getHeight, getLastDamageCause, getLeashedEntities, getLeashHolder, getLocation, getLocation, getMaxFireTicks, getMetadata, getMetadata, getMountLocation, getName, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasDefaultLandingBehavior, hasFriction, hasGravity, hashCode, hasMetadata, hasMoved, hasPermission, hasPermission, hasRotated, intersects, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isLeashed, isOnGround, isOp, isPermissionSet, isPermissionSet, isRemoved, isSilent, isTeleported, isTouchingMaterial, isValid, isWithinDistance, isWithinDistance, leaveVehicle, playEffect, playEffectKnownAndSelf, pulse, pulsePhysics, recalculatePermissions, remove, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, reset, sendMessage, sendMessage, setAirDrag, setApplyDragBeforeAccel, setBoundingBox, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFriction, setGlowing, setGravity, setGravityAccel, setInvulnerable, setLastDamageCause, setLeashHolder, setLeashHolderUniqueId, setLiquidDrag, setMetadata, setOnGround, setOp, setPassenger, setPortalCooldown, setRawLocation, setRawLocation, setSilent, setSize, setTicksLived, setUniqueId, setVelocity, shouldSave, spigot, teleport, teleport, teleport, teleport, teleportToEnd, teleportToSpawn, toString, updateBoundingBox
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addPassenger, addScoreboardTag, eject, fromMobSpawner, getChunk, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, 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, spigot, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage, sendMessage, sendMessage
public GlowMinecart(org.bukkit.Location location, GlowMinecart.MinecartType minecartType)
location
- the locationminecartType
- the minecart type (i.e. the type of block carried, if any)public static GlowMinecart create(org.bukkit.Location location, GlowMinecart.MinecartType minecartType)
location
- the locationminecartType
- the minecart type (i.e. the type of block carried, if any)public List<com.flowpowered.network.Message> createSpawnMessage()
GlowEntity
Message
s which can be sent to a client to spawn this entity.
Implementations in concrete subclasses may return a shallowly immutable list.createSpawnMessage
in class GlowEntity
public boolean entityInteract(GlowPlayer player, InteractEntityMessage message)
entityInteract
in class GlowEntity
public double getDamage()
getDamage
in interface org.bukkit.entity.Minecart
public void setDamage(double damage)
setDamage
in interface org.bukkit.entity.Minecart
public double getMaxSpeed()
getMaxSpeed
in interface org.bukkit.entity.Minecart
public void setMaxSpeed(double maxSpeed)
setMaxSpeed
in interface org.bukkit.entity.Minecart
public boolean isSlowWhenEmpty()
isSlowWhenEmpty
in interface org.bukkit.entity.Minecart
public void setSlowWhenEmpty(boolean slowWhenEmpty)
setSlowWhenEmpty
in interface org.bukkit.entity.Minecart
public org.bukkit.util.Vector getFlyingVelocityMod()
getFlyingVelocityMod
in interface org.bukkit.entity.Minecart
public void setFlyingVelocityMod(org.bukkit.util.Vector flyingVelocityMod)
setFlyingVelocityMod
in interface org.bukkit.entity.Minecart
public org.bukkit.util.Vector getDerailedVelocityMod()
getDerailedVelocityMod
in interface org.bukkit.entity.Minecart
public void setDerailedVelocityMod(org.bukkit.util.Vector derailedVelocityMod)
setDerailedVelocityMod
in interface org.bukkit.entity.Minecart
public org.bukkit.material.MaterialData getDisplayBlock()
getDisplayBlock
in interface org.bukkit.entity.Minecart
public void setDisplayBlock(org.bukkit.material.MaterialData displayBlock)
setDisplayBlock
in interface org.bukkit.entity.Minecart
public int getDisplayBlockOffset()
getDisplayBlockOffset
in interface org.bukkit.entity.Minecart
public void setDisplayBlockOffset(int displayBlockOffset)
setDisplayBlockOffset
in interface org.bukkit.entity.Minecart
public GlowMinecart.MinecartType getMinecartType()
Copyright © 2021. All rights reserved.