Class FallingBlockMock

java.lang.Object
org.bukkit.command.CommandSender.Spigot
org.bukkit.entity.Entity.Spigot
be.seeseemelk.mockbukkit.entity.EntityMock
be.seeseemelk.mockbukkit.entity.FallingBlockMock
All Implemented Interfaces:
MessageTarget, io.papermc.paper.persistence.PersistentDataViewHolder, 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.FallingBlock, org.bukkit.metadata.Metadatable, org.bukkit.Nameable, org.bukkit.permissions.Permissible, org.bukkit.permissions.ServerOperator, org.bukkit.persistence.PersistentDataHolder

public class FallingBlockMock extends EntityMock implements org.bukkit.entity.FallingBlock
Mock implementation of an FallingBlock.
See Also:
  • Constructor Details

    • FallingBlockMock

      public FallingBlockMock(@NotNull @NotNull ServerMock server, @NotNull @NotNull UUID uuid)
      Constructs a new FallingBlock 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

    • getMaterial

      @NotNull public @NotNull org.bukkit.Material getMaterial()
      Specified by:
      getMaterial in interface org.bukkit.entity.FallingBlock
    • getBlockData

      @NotNull public @NotNull org.bukkit.block.data.BlockData getBlockData()
      Specified by:
      getBlockData in interface org.bukkit.entity.FallingBlock
    • setBlockData

      public void setBlockData(@NotNull @NotNull org.bukkit.block.data.BlockData blockData)
      Specified by:
      setBlockData in interface org.bukkit.entity.FallingBlock
    • getBlockState

      @NotNull public @NotNull org.bukkit.block.BlockState getBlockState()
      Specified by:
      getBlockState in interface org.bukkit.entity.FallingBlock
    • setBlockState

      public void setBlockState(@NotNull @NotNull org.bukkit.block.BlockState blockState)
      Specified by:
      setBlockState in interface org.bukkit.entity.FallingBlock
    • getDropItem

      public boolean getDropItem()
      Specified by:
      getDropItem in interface org.bukkit.entity.FallingBlock
    • setDropItem

      public void setDropItem(boolean dropItem)
      Specified by:
      setDropItem in interface org.bukkit.entity.FallingBlock
    • getCancelDrop

      public boolean getCancelDrop()
      Specified by:
      getCancelDrop in interface org.bukkit.entity.FallingBlock
    • setCancelDrop

      public void setCancelDrop(boolean cancelDrop)
      Specified by:
      setCancelDrop in interface org.bukkit.entity.FallingBlock
    • canHurtEntities

      public boolean canHurtEntities()
      Specified by:
      canHurtEntities in interface org.bukkit.entity.FallingBlock
    • setHurtEntities

      public void setHurtEntities(boolean canHurtEntities)
      Specified by:
      setHurtEntities in interface org.bukkit.entity.FallingBlock
    • getDamagePerBlock

      public float getDamagePerBlock()
      Specified by:
      getDamagePerBlock in interface org.bukkit.entity.FallingBlock
    • setDamagePerBlock

      public void setDamagePerBlock(float damage)
      Specified by:
      setDamagePerBlock in interface org.bukkit.entity.FallingBlock
    • getMaxDamage

      public int getMaxDamage()
      Specified by:
      getMaxDamage in interface org.bukkit.entity.FallingBlock
    • setMaxDamage

      public void setMaxDamage(int damage)
      Specified by:
      setMaxDamage in interface org.bukkit.entity.FallingBlock
    • doesAutoExpire

      public boolean doesAutoExpire()
      Specified by:
      doesAutoExpire in interface org.bukkit.entity.FallingBlock
    • shouldAutoExpire

      public void shouldAutoExpire(boolean autoExpire)
      Specified by:
      shouldAutoExpire in interface org.bukkit.entity.FallingBlock
    • getType

      @NotNull public @NotNull org.bukkit.entity.EntityType getType()
      Specified by:
      getType in interface org.bukkit.entity.Entity
      Overrides:
      getType in class EntityMock