Class GameStageHandler
java.lang.Object
de.luckymcdev.foundryengine.common.game.stage.GameStageHandler
Handles the Attachment and All Game Stages for all Players.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds a stage to the player.voidaddStageIf(StageAdditionCondition condition, String stage) voidclearStages(net.minecraft.world.entity.player.Player player) Clears all Stages from the PlayergetStages(net.minecraft.world.entity.player.Player player) booleanitem()loot()mobs()voidonPlayerTick(net.neoforged.neoforge.event.tick.ServerTickEvent.Post event) recipes()voidregister(net.neoforged.bus.api.IEventBus modEventbus) booleanremoveStage(net.minecraft.world.entity.player.Player player, String stage) Removes a stage from the player.
-
Field Details
-
ATTACHMENT
-
-
Constructor Details
-
GameStageHandler
public GameStageHandler()
-
-
Method Details
-
register
public void register(net.neoforged.bus.api.IEventBus modEventbus) -
addStage
Adds a stage to the player.- Returns:
- true if the stage was added, false if they already had it.
-
removeStage
Removes a stage from the player.- Returns:
- true if the stage was removed, false if they didn't have it.
-
clearStages
public void clearStages(net.minecraft.world.entity.player.Player player) Clears all Stages from the Player -
hasStage
-
getStages
-
addStageIf
-
onPlayerTick
public void onPlayerTick(net.neoforged.neoforge.event.tick.ServerTickEvent.Post event) -
dimensions
-
item
-
loot
-
mobs
-
recipes
-