Class FabricPlatformHelper

java.lang.Object
com.mrbysco.unhealthydying.platform.FabricPlatformHelper
All Implemented Interfaces:
IPlatformHelper

public class FabricPlatformHelper extends Object implements IPlatformHelper
  • Constructor Details

    • FabricPlatformHelper

      public FabricPlatformHelper()
  • Method Details

    • isPlayer

      public boolean isPlayer(net.minecraft.world.entity.Entity entity)
      Description copied from interface: IPlatformHelper
      If the entity is a player.
      Specified by:
      isPlayer in interface IPlatformHelper
      Returns:
      True if the entity is a player, false otherwise
    • setAmountData

      public void setAmountData(net.minecraft.world.entity.player.Player player, String customTag, int targetAmount, int healthGained)
      Description copied from interface: IPlatformHelper
      Sets the amount of kills for the player
      Specified by:
      setAmountData in interface IPlatformHelper
      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