Class DefaultBlockMinecartEntity

All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity
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(GeyserSession session, int entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, org.cloudburstmc.math.vector.Vector3f position, org.cloudburstmc.math.vector.Vector3f motion, float yaw, float pitch, float headYaw)
  • Method Details

    • spawnEntity

      public void spawnEntity()
      Overrides:
      spawnEntity in class Entity
    • setCustomBlock

      public void setCustomBlock(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata)
      Overrides:
      setCustomBlock in class MinecartEntity
    • setCustomBlockOffset

      public void setCustomBlockOffset(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.IntEntityMetadata entityMetadata)
      Overrides:
      setCustomBlockOffset in class MinecartEntity
    • setShowCustomBlock

      public void setShowCustomBlock(com.github.steveice10.mc.protocol.data.game.entity.metadata.type.BooleanEntityMetadata entityMetadata)
      Overrides:
      setShowCustomBlock in class MinecartEntity
    • updateDefaultBlockMetadata

      public void updateDefaultBlockMetadata()