Interface ISpectacleBlock


public interface ISpectacleBlock
Implement this interface on your block entities so that players wearing Spectacles can see them more easily.
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    isHighlighted(net.minecraft.world.entity.player.Player player)
    Determines whether a highlight should be drawn around this block.
  • Method Details

    • isHighlighted

      default boolean isHighlighted(net.minecraft.world.entity.player.Player player)
      Determines whether a highlight should be drawn around this block.
      Parameters:
      player - The player wearing spectacles.
      Returns:
      true if a highlighted bounding box should be drawn around this block, false otherwise.