Class FallingBlockMeta

java.lang.Object
net.minestom.server.entity.metadata.EntityMeta
net.minestom.server.entity.metadata.other.FallingBlockMeta
All Implemented Interfaces:
ObjectDataProvider

public class FallingBlockMeta extends EntityMeta implements ObjectDataProvider
  • Field Details

  • Constructor Details

    • FallingBlockMeta

      public FallingBlockMeta(@NotNull @NotNull Entity entity, @NotNull @NotNull Metadata metadata)
  • Method Details

    • getSpawnPosition

      public Point getSpawnPosition()
    • setSpawnPosition

      public void setSpawnPosition(Point value)
    • getBlock

      @NotNull public @NotNull Block getBlock()
    • setBlock

      public void setBlock(@NotNull @NotNull Block block)
      Sets which block to display. This is possible only before spawn packet is sent.
      Parameters:
      block - which block to display.
    • getObjectData

      public int getObjectData()
      Specified by:
      getObjectData in interface ObjectDataProvider
    • requiresVelocityPacketAtSpawn

      public boolean requiresVelocityPacketAtSpawn()
      Specified by:
      requiresVelocityPacketAtSpawn in interface ObjectDataProvider