Class GlowMinecart

All Implemented Interfaces:
net.kyori.adventure.audience.Audience, 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

public abstract class GlowMinecart extends GlowVehicle implements org.bukkit.entity.Minecart
  • Constructor Details

    • GlowMinecart

      public GlowMinecart(org.bukkit.Location location, GlowMinecart.MinecartType minecartType)
      Creates a minecart.
      Parameters:
      location - the location
      minecartType - 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 location
      minecartType - the minecart type (i.e. the type of block carried, if any)
      Returns:
      The resultant minecart
    • createSpawnMessage

      public List<com.flowpowered.network.Message> createSpawnMessage()
      Description copied from class: GlowEntity
      Creates a list of Messages 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 class GlowEntity
      Returns:
      A list of messages which can spawn this entity.
    • getMinecartMaterial

      @NotNull public @NotNull org.bukkit.Material getMinecartMaterial()
      Specified by:
      getMinecartMaterial in interface org.bukkit.entity.Minecart
    • entityInteract

      public boolean entityInteract(GlowPlayer player, InteractEntityMessage message)
      Overrides:
      entityInteract in class GlowEntity
    • getMinecartType

      public GlowMinecart.MinecartType getMinecartType()
    • getDamage

      public double getDamage()
      Specified by:
      getDamage in interface org.bukkit.entity.Minecart
    • setDamage

      public void setDamage(double damage)
      Specified by:
      setDamage in interface org.bukkit.entity.Minecart
    • getMaxSpeed

      public double getMaxSpeed()
      Specified by:
      getMaxSpeed in interface org.bukkit.entity.Minecart
    • setMaxSpeed

      public void setMaxSpeed(double maxSpeed)
      Specified by:
      setMaxSpeed in interface org.bukkit.entity.Minecart
    • isSlowWhenEmpty

      public boolean isSlowWhenEmpty()
      Specified by:
      isSlowWhenEmpty in interface org.bukkit.entity.Minecart
    • setSlowWhenEmpty

      public void setSlowWhenEmpty(boolean slowWhenEmpty)
      Specified by:
      setSlowWhenEmpty in interface org.bukkit.entity.Minecart
    • getFlyingVelocityMod

      public org.bukkit.util.Vector getFlyingVelocityMod()
      Specified by:
      getFlyingVelocityMod in interface org.bukkit.entity.Minecart
    • setFlyingVelocityMod

      public void setFlyingVelocityMod(org.bukkit.util.Vector flyingVelocityMod)
      Specified by:
      setFlyingVelocityMod in interface org.bukkit.entity.Minecart
    • getDerailedVelocityMod

      public org.bukkit.util.Vector getDerailedVelocityMod()
      Specified by:
      getDerailedVelocityMod in interface org.bukkit.entity.Minecart
    • setDerailedVelocityMod

      public void setDerailedVelocityMod(org.bukkit.util.Vector derailedVelocityMod)
      Specified by:
      setDerailedVelocityMod in interface org.bukkit.entity.Minecart
    • getDisplayBlock

      public org.bukkit.material.MaterialData getDisplayBlock()
      Specified by:
      getDisplayBlock in interface org.bukkit.entity.Minecart
    • setDisplayBlock

      public void setDisplayBlock(org.bukkit.material.MaterialData displayBlock)
      Specified by:
      setDisplayBlock in interface org.bukkit.entity.Minecart
    • getDisplayBlockData

      public org.bukkit.block.data.BlockData getDisplayBlockData()
      Specified by:
      getDisplayBlockData in interface org.bukkit.entity.Minecart
    • setDisplayBlockData

      public void setDisplayBlockData(org.bukkit.block.data.BlockData displayBlockData)
      Specified by:
      setDisplayBlockData in interface org.bukkit.entity.Minecart
    • getDisplayBlockOffset

      public int getDisplayBlockOffset()
      Specified by:
      getDisplayBlockOffset in interface org.bukkit.entity.Minecart
    • setDisplayBlockOffset

      public void setDisplayBlockOffset(int displayBlockOffset)
      Specified by:
      setDisplayBlockOffset in interface org.bukkit.entity.Minecart