Uses of Interface
net.neoforged.neoforge.common.conditions.ICondition.IContext
Package
Description
-
Uses of ICondition.IContext in net.minecraft.server
Modifier and TypeFieldDescriptionprivate final ICondition.IContext
ReloadableServerResources.context
Modifier and TypeMethodDescriptionReloadableServerResources.getConditionContext()
Exposes the current condition context for usage in other reload listeners.
This is not useful outside the reloading stage. -
Uses of ICondition.IContext in net.neoforged.neoforge.common.conditions
Modifier and TypeFieldDescriptionprivate final ICondition.IContext
ConditionalOps.context
static final ICondition.IContext
ICondition.IContext.EMPTY
static final ICondition.IContext
ICondition.IContext.TAGS_INVALID
Modifier and TypeFieldDescriptionprivate final com.mojang.serialization.Codec
<ICondition.IContext> ConditionalOps.ConditionalDecoder.contextCodec
Modifier and TypeMethodDescriptionstatic com.mojang.serialization.MapCodec
<ICondition.IContext> ConditionalOps.retrieveContext()
Returns a codec that can retrieve aICondition.IContext
from a registry ops, for example withretrieveContext().decode(ops, ops.emptyMap())
.Modifier and TypeMethodDescriptionboolean
AndCondition.test
(ICondition.IContext context) boolean
FalseCondition.test
(ICondition.IContext condition) boolean
ICondition.test
(ICondition.IContext context) boolean
ItemExistsCondition.test
(ICondition.IContext context) boolean
ModLoadedCondition.test
(ICondition.IContext context) boolean
NotCondition.test
(ICondition.IContext context) boolean
OrCondition.test
(ICondition.IContext context) boolean
TagEmptyCondition.test
(ICondition.IContext context) boolean
TrueCondition.test
(ICondition.IContext context) -
Uses of ICondition.IContext in net.neoforged.neoforge.event
Modifier and TypeMethodDescriptionAddReloadListenerEvent.getConditionContext()
This context object holds data relevant to the current reload, such as staged tags.Modifier and TypeMethodDescriptionvoid
AddReloadListenerEvent.WrappedStateAwareListener.injectContext
(ICondition.IContext context, HolderLookup.Provider registryLookup) -
Uses of ICondition.IContext in net.neoforged.neoforge.registries
Modifier and TypeFieldDescriptionprivate final ICondition.IContext
DataMapLoader.conditionContext
Modifier and TypeMethodDescriptionprivate static Map
<ResourceKey<? extends Registry<?>>, DataMapLoader.LoadResult<?>> DataMapLoader.load
(ResourceManager manager, ProfilerFiller profiler, RegistryAccess access, ICondition.IContext context) ModifierConstructorDescriptionDataMapLoader
(ICondition.IContext conditionContext, RegistryAccess registryAccess) -
Uses of ICondition.IContext in net.neoforged.neoforge.resource
Modifier and TypeFieldDescriptionprivate ICondition.IContext
ContextAwareReloadListener.conditionContext
Modifier and TypeMethodDescriptionprotected final ICondition.IContext
ContextAwareReloadListener.getContext()
Returns the condition context held by this listener, orEMPTY
if it is unavailable.Modifier and TypeMethodDescriptionvoid
ContextAwareReloadListener.injectContext
(ICondition.IContext context, HolderLookup.Provider registryLookup)