Interface IGlowingEyesComponent

All Known Implementing Classes:
GlowingEyesComponentImpl

public interface IGlowingEyesComponent
  • Method Summary

    Modifier and Type
    Method
    Description
    getGlowingEyesMap(net.minecraft.world.entity.player.Player player)
    Gets the glowing eyes map from a player
    boolean
    isToggledOn(net.minecraft.world.entity.player.Player player)
    Gets whether the glowing eyes are toggled on for a player
    void
    sendUpdate(net.minecraft.server.level.ServerPlayer updatedPlayer)
    Server-side-only method to send the updated component to the client
    void
    sendUpdate(net.minecraft.server.level.ServerPlayer updatedPlayer, net.minecraft.server.level.ServerPlayer receivingPlayer)
    Server-side-only method to send the updated component to the client
    void
    setGlowingEyesMap(net.minecraft.world.entity.player.Player player, Map<Point,Color> glowingEyesMap)
    Sets the glowing eyes map (should only be using when completely overwriting the map) Otherwise, get the glowing eyes map and modify it
    void
    setToggledOn(net.minecraft.world.entity.player.Player player, boolean toggledOn)
    Sets whether the glowing eyes are toggled on for a player
  • Method Details

    • getGlowingEyesMap

      Map<Point,Color> getGlowingEyesMap(net.minecraft.world.entity.player.Player player)
      Gets the glowing eyes map from a player
      Parameters:
      player - the player to get the glowing eyes map from
      Returns:
      the glowing eyes map (Point, Color)
    • setGlowingEyesMap

      void setGlowingEyesMap(net.minecraft.world.entity.player.Player player, Map<Point,Color> glowingEyesMap)
      Sets the glowing eyes map (should only be using when completely overwriting the map) Otherwise, get the glowing eyes map and modify it
      Parameters:
      player - the player to set the glowing eyes map for
      glowingEyesMap - the glowing eyes map to set
    • isToggledOn

      boolean isToggledOn(net.minecraft.world.entity.player.Player player)
      Gets whether the glowing eyes are toggled on for a player
      Parameters:
      player - the player to get the toggled on status for
      Returns:
      whether the glowing eyes are toggled on
    • setToggledOn

      void setToggledOn(net.minecraft.world.entity.player.Player player, boolean toggledOn)
      Sets whether the glowing eyes are toggled on for a player
      Parameters:
      player - the player to set the toggled on status for
      toggledOn - whether the glowing eyes are toggled on
    • sendUpdate

      void sendUpdate(net.minecraft.server.level.ServerPlayer updatedPlayer)
      Server-side-only method to send the updated component to the client
      Parameters:
      updatedPlayer - the player who has been updated (will receive the update if no second player is specified)
    • sendUpdate

      void sendUpdate(net.minecraft.server.level.ServerPlayer updatedPlayer, net.minecraft.server.level.ServerPlayer receivingPlayer)
      Server-side-only method to send the updated component to the client
      Parameters:
      updatedPlayer - the player who has been updated
      receivingPlayer - another player who will receive the update