Package de.z0rdak.yawp.api.events.region
Class NeoForgeFlagCheckResult
java.lang.Object
net.neoforged.bus.api.Event
de.z0rdak.yawp.api.events.region.NeoForgeFlagCheckResult
public class NeoForgeFlagCheckResult
extends net.neoforged.bus.api.Event
Represents the result of a flag check.
Contains the responsible region, the flag, the position, the player and the result.
-
Constructor Summary
ConstructorsConstructorDescriptionNeoForgeFlagCheckResult(NeoForgeFlagCheckEvent flagCheck, FlagState state, IProtectedRegion responsibleRegion, IFlag flag) -
Method Summary
Modifier and TypeMethodDescriptionstatic NeoForgeFlagCheckResultasEvent(FlagCheckResult result) static FlagCheckResultasNonEvent(NeoForgeFlagCheckResult result) getFlag()voidsetFlagState(FlagState result) static NeoForgeFlagCheckResultUndefined(NeoForgeFlagCheckEvent flagCheck)
-
Constructor Details
-
NeoForgeFlagCheckResult
public NeoForgeFlagCheckResult(NeoForgeFlagCheckEvent flagCheck, FlagState state, @Nullable IProtectedRegion responsibleRegion, @Nullable IFlag flag)
-
-
Method Details
-
Undefined
-
asNonEvent
-
asEvent
-
getResponsible
-
getFlagCheck
-
getFlagState
-
setFlagState
-
getFlag
-