Class DisplayMock

java.lang.Object
org.bukkit.command.CommandSender.Spigot
org.bukkit.entity.Entity.Spigot
be.seeseemelk.mockbukkit.entity.EntityMock
be.seeseemelk.mockbukkit.entity.DisplayMock
All Implemented Interfaces:
MessageTarget, 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.Display, org.bukkit.entity.Entity, org.bukkit.metadata.Metadatable, org.bukkit.Nameable, org.bukkit.permissions.Permissible, org.bukkit.permissions.ServerOperator, org.bukkit.persistence.PersistentDataHolder
Direct Known Subclasses:
BlockDisplayMock, ItemDisplayMock

public class DisplayMock extends EntityMock implements org.bukkit.entity.Display
  • Constructor Details

    • DisplayMock

      protected DisplayMock(@NotNull @NotNull ServerMock server, @NotNull @NotNull UUID uuid)
      Constructs a new EntityMock on the provided ServerMock with a specified UUID.
      Parameters:
      server - The server to create the entity on.
      uuid - The UUID of the entity.
  • Method Details

    • getTransformation

      @NotNull public @NotNull org.bukkit.util.Transformation getTransformation()
      Specified by:
      getTransformation in interface org.bukkit.entity.Display
    • setTransformation

      public void setTransformation(@NotNull @NotNull org.bukkit.util.Transformation transformation)
      Specified by:
      setTransformation in interface org.bukkit.entity.Display
    • setTransformationMatrix

      public void setTransformationMatrix(@NotNull @NotNull org.joml.Matrix4f transformationMatrix)
      Specified by:
      setTransformationMatrix in interface org.bukkit.entity.Display
    • getInterpolationDuration

      public int getInterpolationDuration()
      Specified by:
      getInterpolationDuration in interface org.bukkit.entity.Display
    • setInterpolationDuration

      public void setInterpolationDuration(int duration)
      Specified by:
      setInterpolationDuration in interface org.bukkit.entity.Display
    • getTeleportDuration

      public int getTeleportDuration()
      Specified by:
      getTeleportDuration in interface org.bukkit.entity.Display
    • setTeleportDuration

      public void setTeleportDuration(int duration)
      Specified by:
      setTeleportDuration in interface org.bukkit.entity.Display
    • getViewRange

      public float getViewRange()
      Specified by:
      getViewRange in interface org.bukkit.entity.Display
    • setViewRange

      public void setViewRange(float range)
      Specified by:
      setViewRange in interface org.bukkit.entity.Display
    • getShadowRadius

      public float getShadowRadius()
      Specified by:
      getShadowRadius in interface org.bukkit.entity.Display
    • setShadowRadius

      public void setShadowRadius(float radius)
      Specified by:
      setShadowRadius in interface org.bukkit.entity.Display
    • getShadowStrength

      public float getShadowStrength()
      Specified by:
      getShadowStrength in interface org.bukkit.entity.Display
    • setShadowStrength

      public void setShadowStrength(float strength)
      Specified by:
      setShadowStrength in interface org.bukkit.entity.Display
    • getDisplayWidth

      public float getDisplayWidth()
      Specified by:
      getDisplayWidth in interface org.bukkit.entity.Display
    • setDisplayWidth

      public void setDisplayWidth(float width)
      Specified by:
      setDisplayWidth in interface org.bukkit.entity.Display
    • getDisplayHeight

      public float getDisplayHeight()
      Specified by:
      getDisplayHeight in interface org.bukkit.entity.Display
    • setDisplayHeight

      public void setDisplayHeight(float height)
      Specified by:
      setDisplayHeight in interface org.bukkit.entity.Display
    • getInterpolationDelay

      public int getInterpolationDelay()
      Specified by:
      getInterpolationDelay in interface org.bukkit.entity.Display
    • setInterpolationDelay

      public void setInterpolationDelay(int ticks)
      Specified by:
      setInterpolationDelay in interface org.bukkit.entity.Display
    • getBillboard

      @NotNull public @NotNull org.bukkit.entity.Display.Billboard getBillboard()
      Specified by:
      getBillboard in interface org.bukkit.entity.Display
    • setBillboard

      public void setBillboard(@NotNull @NotNull org.bukkit.entity.Display.Billboard billboard)
      Specified by:
      setBillboard in interface org.bukkit.entity.Display
    • getGlowColorOverride

      @Nullable public @Nullable org.bukkit.Color getGlowColorOverride()
      Specified by:
      getGlowColorOverride in interface org.bukkit.entity.Display
    • setGlowColorOverride

      public void setGlowColorOverride(@Nullable @Nullable org.bukkit.Color color)
      Specified by:
      setGlowColorOverride in interface org.bukkit.entity.Display
    • getBrightness

      @Nullable public @Nullable org.bukkit.entity.Display.Brightness getBrightness()
      Specified by:
      getBrightness in interface org.bukkit.entity.Display
    • setBrightness

      public void setBrightness(@Nullable @Nullable org.bukkit.entity.Display.Brightness brightness)
      Specified by:
      setBrightness in interface org.bukkit.entity.Display