Class NeoForgeFlagCheckResult
java.lang.Object
net.neoforged.bus.api.Event
de.z0rdak.yawp.platform.event.NeoForgeFlagCheckResult
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
public class NeoForgeFlagCheckResult
extends net.neoforged.bus.api.Event
implements net.neoforged.bus.api.ICancellableEvent
Represents the result of a flag check.
Contains the responsible region, the flag, the position, the player and the result.
-
Constructor Summary
ConstructorsConstructorDescriptionNeoForgeFlagCheckResult(NeoForgeFlagCheckRequest flagCheck, FlagState state, IProtectedRegion responsibleRegion, IFlag flag) -
Method Summary
Modifier and TypeMethodDescriptionstatic NeoForgeFlagCheckResultasEvent(FlagCheckResult result) static FlagCheckResultasNonEvent(NeoForgeFlagCheckResult result) getFlag()voidsetFlagState(FlagState result) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Constructor Details
-
NeoForgeFlagCheckResult
public NeoForgeFlagCheckResult(NeoForgeFlagCheckRequest flagCheck, FlagState state, @Nullable IProtectedRegion responsibleRegion, @Nullable IFlag flag)
-
-
Method Details
-
asNonEvent
-
asEvent
-
getResponsible
-
getFlagCheck
-
getFlagState
-
setFlagState
-
getFlag
-