Interface IPlayerDataComponent

All Known Implementing Classes:
PlayerDataComponentImpl

public interface IPlayerDataComponent
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addTrackedBy(net.minecraft.world.entity.player.Player playerTracked, net.minecraft.world.entity.player.Player trackedBy)
    Adds a player to the list of players tracking the given player
    Set<net.minecraft.world.entity.player.Player>
    getTrackedBy(net.minecraft.world.entity.player.Player player)
    Gets the players that are tracking the given player
    boolean
    hasMod(net.minecraft.world.entity.player.Player player)
    Gets whether the player has the mod installed
    void
    removeTrackedBy(net.minecraft.world.entity.player.Player playerTracked, net.minecraft.world.entity.player.Player trackedBy)
    Removes a player from the list of players tracking the given player
    void
    setHasMod(net.minecraft.world.entity.player.Player player, boolean hasMod)
    Sets whether the player has the mod installed
  • Method Details

    • hasMod

      boolean hasMod(net.minecraft.world.entity.player.Player player)
      Gets whether the player has the mod installed
      Parameters:
      player - the player to check
      Returns:
      whether the player has the mod installed
    • setHasMod

      void setHasMod(net.minecraft.world.entity.player.Player player, boolean hasMod)
      Sets whether the player has the mod installed
      Parameters:
      player - the player to set the mod installed status for
    • getTrackedBy

      Set<net.minecraft.world.entity.player.Player> getTrackedBy(net.minecraft.world.entity.player.Player player)
      Gets the players that are tracking the given player
      Parameters:
      player - the player to get the tracking players for
    • addTrackedBy

      void addTrackedBy(net.minecraft.world.entity.player.Player playerTracked, net.minecraft.world.entity.player.Player trackedBy)
      Adds a player to the list of players tracking the given player
      Parameters:
      playerTracked - the player to add to the list of players tracking
      trackedBy - the player tracking the other player
    • removeTrackedBy

      void removeTrackedBy(net.minecraft.world.entity.player.Player playerTracked, net.minecraft.world.entity.player.Player trackedBy)
      Removes a player from the list of players tracking the given player
      Parameters:
      playerTracked - the player to remove from the list of players tracking
      trackedBy - the player tracking the other player