Class FlowerPotBlock

java.lang.Object
org.geysermc.geyser.level.block.type.Block
org.geysermc.geyser.level.block.type.FlowerPotBlock
All Implemented Interfaces:
BedrockChunkWantsBlockEntityTag, RequiresBlockState

public class FlowerPotBlock extends Block implements BedrockChunkWantsBlockEntityTag
  • Constructor Details

  • Method Details

    • updateBlock

      public void updateBlock(GeyserSession session, BlockState state, org.cloudburstmc.math.vector.Vector3i position)
      Overrides:
      updateBlock in class Block
    • createTag

      public org.cloudburstmc.nbt.NbtMap createTag(GeyserSession session, org.cloudburstmc.math.vector.Vector3i position, BlockState blockState)
      Description copied from interface: BedrockChunkWantsBlockEntityTag
      Get the tag of the Bedrock-only block entity. Used during chunk loading.
      Specified by:
      createTag in interface BedrockChunkWantsBlockEntityTag
      position - Bedrock position of block.
      blockState - Java BlockState of block.
      Returns:
      Bedrock tag
    • pickItem

      public org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack pickItem(BlockState state)
      Overrides:
      pickItem in class Block
    • flower

      public Block flower()