Interface IPlatformHelper
- All Known Implementing Classes:
FabricPlatformHelper
public interface IPlatformHelper
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisPlayer(net.minecraft.world.entity.Entity entity) If the entity is a player.voidsetAmountData(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 forcustomTag- The custom tag to usetargetAmount- The amount of kills neededhealthGained- The amount of health gained
-