Interface IReward
- All Known Implementing Classes:
RewardItem
public interface IReward
A reward instance.
-
Method Summary
-
Method Details
-
canObtain
boolean canObtain(net.minecraft.world.entity.player.Player player) If the given player in its current state is able to obtain this reward.- Parameters:
player
- The player.- Returns:
- If it can obtain this.
-
obtain
void obtain(net.minecraft.world.entity.player.Player player) The logic for obtaining this reward. Will only be called server-side.- Parameters:
player
- The player.
-
getWidth
int getWidth()- Returns:
- The gui width/
-
getHeight
int getHeight()- Returns:
- The gui height.
-
constructRewardClient
IRewardClient constructRewardClient()
-