Class PistonBlock

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

public class PistonBlock extends Block implements BedrockChunkWantsBlockEntityTag
  • Constructor Details

  • Method Details

    • 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
      Parameters:
      position - Bedrock position of block.
      blockState - Java BlockState of block.
      Returns:
      Bedrock tag