Interface IPlayerDataComponent
- All Known Implementing Classes:
PlayerDataComponentImpl
public interface IPlayerDataComponent
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddTrackedBy(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 playerSet<net.minecraft.world.entity.player.Player>getTrackedBy(net.minecraft.world.entity.player.Player player) Gets the players that are tracking the given playerbooleanhasMod(net.minecraft.world.entity.player.Player player) Gets whether the player has the mod installedvoidremoveTrackedBy(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 playervoidsetHasMod(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 trackingtrackedBy- 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 trackingtrackedBy- the player tracking the other player
-