Class CommandBlockMinecartEntity

All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity, Tickable

public class CommandBlockMinecartEntity extends DefaultBlockMinecartEntity
  • Constructor Details

    • CommandBlockMinecartEntity

      public CommandBlockMinecartEntity(EntitySpawnContext context)
  • Method Details

    • initializeMetadata

      protected void initializeMetadata()
      Description copied from class: Entity
      Called on entity spawn. Used to populate the entity metadata and flags with default values.
      Overrides:
      initializeMetadata in class Entity
    • updateDefaultBlockMetadata

      public void updateDefaultBlockMetadata()
      By default, the command block shown is purple on Bedrock, which does not match Java Edition's orange.
      Overrides:
      updateDefaultBlockMetadata in class DefaultBlockMinecartEntity
    • testInteraction

      protected InteractiveTag testInteraction(org.geysermc.mcprotocollib.protocol.data.game.entity.player.Hand hand)
      Description copied from class: Entity
      Test interacting with the given hand to see if we should send a tag to the Bedrock client. Should usually mirror Entity.interact(Hand) without any side effects.
      Overrides:
      testInteraction in class MinecartEntity
    • interact

      public InteractionResult interact(org.geysermc.mcprotocollib.protocol.data.game.entity.player.Hand hand)
      Description copied from class: Entity
      Simulates interacting with an entity. The code here should mirror Java Edition code to the best of its ability, to ensure packet parity as well as functionality parity (such as sound effect responses).
      Overrides:
      interact in class MinecartEntity