Class FabricPlatformHelper
java.lang.Object
com.mrbysco.unhealthydying.platform.FabricPlatformHelper
- All Implemented Interfaces:
IPlatformHelper
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
FabricPlatformHelper
public FabricPlatformHelper()
-
-
Method Details
-
isPlayer
public boolean isPlayer(net.minecraft.world.entity.Entity entity) Description copied from interface:IPlatformHelperIf the entity is a player.- Specified by:
isPlayerin interfaceIPlatformHelper- 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:IPlatformHelperSets the amount of kills for the player- Specified by:
setAmountDatain interfaceIPlatformHelper- Parameters:
player- The player to set the data forcustomTag- The custom tag to usetargetAmount- The amount of kills neededhealthGained- The amount of health gained
-