Class AdvancementFunctionReward
java.lang.Object
eu.endercentral.crazy_advancements.advancement.AdvancementReward
eu.endercentral.crazy_advancements.advancement.AdvancementFunctionReward
Represents a Reward in form of a .mcfunction function
- Author:
- Axel
-
Constructor Summary
ConstructorDescriptionAdvancementFunctionReward
(String function, int delay) Constructor for creating a Reward that is given through a function -
Method Summary
-
Constructor Details
-
AdvancementFunctionReward
Constructor for creating a Reward that is given through a function- Parameters:
function
- The function namedelay
- The delay in ticks before the function is executed
-
-
Method Details
-
getName
Gets the Name of the function- Returns:
- The Name of the function
-
getDelay
public int getDelay()Gets the delay in ticks before the function is executed- Returns:
- The delay in ticks
-
onGrant
Description copied from class:AdvancementReward
Gives the Reward- Specified by:
onGrant
in classAdvancementReward
- Parameters:
player
- The Receiver
-