Package net.glowstone.entity.objects
Class GlowBoat
java.lang.Object
net.glowstone.entity.GlowEntity
net.glowstone.entity.GlowVehicle
net.glowstone.entity.objects.GlowBoat
- 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.Boat
,org.bukkit.entity.Entity
,org.bukkit.entity.Vehicle
,org.bukkit.metadata.Metadatable
,org.bukkit.Nameable
,org.bukkit.permissions.Permissible
,org.bukkit.permissions.ServerOperator
,org.bukkit.persistence.PersistentDataHolder
-
Nested Class Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionList<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) @NotNull org.bukkit.Material
boolean
double
double
boolean
org.bukkit.entity.EntityType
getType()
double
org.bukkit.TreeSpecies
boolean
boolean
isEmpty()
void
reset()
Resets the previous location and other properties to their current value.void
setLeftPaddleTurning
(boolean leftPaddleTurning) void
setMaxSpeed
(double v) void
setOccupiedDeceleration
(double v) void
setRightPaddleTurning
(boolean rightPaddleTurning) void
setUnoccupiedDeceleration
(double v) void
setWoodType
(org.bukkit.TreeSpecies treeSpecies) void
setWorkOnLand
(boolean workOnLand) 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, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasDefaultLandingBehavior, hasFriction, hasGravity, hashCode, hasMetadata, hasMoved, hasPermission, hasPermission, hasRotated, intersects, isCustomNameVisible, isDead, 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, 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, getUniqueId, getVehicle, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, 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
-
GlowBoat
public GlowBoat(org.bukkit.Location location) Creates a boat.- Parameters:
location
- the boat's location
-
-
Method Details
-
getType
public org.bukkit.entity.EntityType getType()- Specified by:
getType
in interfaceorg.bukkit.entity.Entity
- Overrides:
getType
in classGlowEntity
-
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.
-
reset
public void reset()Description copied from class:GlowEntity
Resets the previous location and other properties to their current value.- Overrides:
reset
in classGlowEntity
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceorg.bukkit.entity.Entity
- Overrides:
isEmpty
in classGlowEntity
-
entityInteract
- Overrides:
entityInteract
in classGlowEntity
-
setWoodType
public void setWoodType(org.bukkit.TreeSpecies treeSpecies) - Specified by:
setWoodType
in interfaceorg.bukkit.entity.Boat
-
getMaxSpeed
public double getMaxSpeed()- Specified by:
getMaxSpeed
in interfaceorg.bukkit.entity.Boat
-
setMaxSpeed
public void setMaxSpeed(double v) - Specified by:
setMaxSpeed
in interfaceorg.bukkit.entity.Boat
-
getOccupiedDeceleration
public double getOccupiedDeceleration()- Specified by:
getOccupiedDeceleration
in interfaceorg.bukkit.entity.Boat
-
setOccupiedDeceleration
public void setOccupiedDeceleration(double v) - Specified by:
setOccupiedDeceleration
in interfaceorg.bukkit.entity.Boat
-
getUnoccupiedDeceleration
public double getUnoccupiedDeceleration()- Specified by:
getUnoccupiedDeceleration
in interfaceorg.bukkit.entity.Boat
-
setUnoccupiedDeceleration
public void setUnoccupiedDeceleration(double v) - Specified by:
setUnoccupiedDeceleration
in interfaceorg.bukkit.entity.Boat
-
getWorkOnLand
public boolean getWorkOnLand()- Specified by:
getWorkOnLand
in interfaceorg.bukkit.entity.Boat
-
setWorkOnLand
public void setWorkOnLand(boolean workOnLand) - Specified by:
setWorkOnLand
in interfaceorg.bukkit.entity.Boat
-
getBoatMaterial
@NotNull public @NotNull org.bukkit.Material getBoatMaterial()- Specified by:
getBoatMaterial
in interfaceorg.bukkit.entity.Boat
-
getRightPaddleTurning
public boolean getRightPaddleTurning() -
setRightPaddleTurning
public void setRightPaddleTurning(boolean rightPaddleTurning) -
getLeftPaddleTurning
public boolean getLeftPaddleTurning() -
setLeftPaddleTurning
public void setLeftPaddleTurning(boolean leftPaddleTurning) -
getWoodType
public org.bukkit.TreeSpecies getWoodType()- Specified by:
getWoodType
in interfaceorg.bukkit.entity.Boat
-