Interface IGlowingEyesComponent
- All Known Implementing Classes:
GlowingEyesComponentImpl
public interface IGlowingEyesComponent
-
Method Summary
Modifier and TypeMethodDescriptiongetGlowingEyesMap(net.minecraft.world.entity.player.Player player) Gets the glowing eyes map from a playerbooleanisToggledOn(net.minecraft.world.entity.player.Player player) Gets whether the glowing eyes are toggled on for a playervoidsendUpdate(net.minecraft.server.level.ServerPlayer updatedPlayer) Server-side-only method to send the updated component to the clientvoidsendUpdate(net.minecraft.server.level.ServerPlayer updatedPlayer, net.minecraft.server.level.ServerPlayer receivingPlayer) Server-side-only method to send the updated component to the clientvoidsetGlowingEyesMap(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 itvoidsetToggledOn(net.minecraft.world.entity.player.Player player, boolean toggledOn) Sets whether the glowing eyes are toggled on for a player
-
Method Details
-
getGlowingEyesMap
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 forglowingEyesMap- 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 fortoggledOn- 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 updatedreceivingPlayer- another player who will receive the update
-