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
  • Constructor Details

    • FallingBlockMeta

      public FallingBlockMeta(@NotNull @NotNull Entity entity, @NotNull @NotNull MetadataHolder 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