Interface IPlatformHelper


public interface IPlatformHelper
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isPlayer(net.minecraft.world.entity.Entity entity)
    If the entity is a player.
    void
    setAmountData(net.minecraft.world.entity.player.Player player, String customTag, int targetAmount, int healthGained)
    Sets the amount of kills for the player
  • Method Details

    • isPlayer

      boolean isPlayer(net.minecraft.world.entity.Entity entity)
      If the entity is a player.
      Returns:
      True if the entity is a player, false otherwise
    • setAmountData

      void setAmountData(net.minecraft.world.entity.player.Player player, String customTag, int targetAmount, int healthGained)
      Sets the amount of kills for the player
      Parameters:
      player - The player to set the data for
      customTag - The custom tag to use
      targetAmount - The amount of kills needed
      healthGained - The amount of health gained