Class DefaultBlockMinecartEntity

Direct Known Subclasses:
CommandBlockMinecartEntity, FurnaceMinecartEntity, SpawnerMinecartEntity

public class DefaultBlockMinecartEntity extends MinecartEntity
This class is used as a base for minecarts with a default block to display like furnaces and spawners
  • Field Details

    • customBlock

      public int customBlock
    • customBlockOffset

      public int customBlockOffset
    • showCustomBlock

      public boolean showCustomBlock
  • Constructor Details

    • DefaultBlockMinecartEntity

      public DefaultBlockMinecartEntity(long entityId, long geyserId, EntityType entityType, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f motion, com.nukkitx.math.vector.Vector3f rotation)
  • Method Details

    • spawnEntity

      public void spawnEntity(GeyserSession session)
      Overrides:
      spawnEntity in class Entity
    • updateBedrockMetadata

      public void updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata, GeyserSession session)
      Description copied from class: Entity
      Applies the Java metadata to the local Bedrock metadata copy
      Overrides:
      updateBedrockMetadata in class MinecartEntity
      Parameters:
      entityMetadata - the Java entity metadata
      session - GeyserSession
    • updateDefaultBlockMetadata

      public void updateDefaultBlockMetadata(GeyserSession session)