Package dev.jaxydog.astral.content.power
Class AstralConditionFactory<T>
java.lang.Object
io.github.apace100.apoli.power.factory.condition.ConditionFactory<T>
dev.jaxydog.astral.content.power.AstralConditionFactory<T>
- All Implemented Interfaces:
Registered,io.github.apace100.apoli.power.factory.Factory
public class AstralConditionFactory<T>
extends io.github.apace100.apoli.power.factory.condition.ConditionFactory<T>
implements Registered
An extension of a
ConditionFactory that provides additional functionality.- Since:
- 2.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.apace100.apoli.power.factory.condition.ConditionFactory
io.github.apace100.apoli.power.factory.condition.ConditionFactory.InstanceNested classes/interfaces inherited from interface dev.jaxydog.astral.register.Registered
Registered.All, Registered.Client, Registered.Common, Registered.Generated, Registered.Server -
Field Summary
Fields inherited from class io.github.apace100.apoli.power.factory.condition.ConditionFactory
data -
Constructor Summary
ConstructorsConstructorDescriptionAstralConditionFactory(String path, io.github.apace100.calio.data.SerializableData data, BiPredicate<io.github.apace100.calio.data.SerializableData.Instance, T> condition) Creates a new condition factory. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.util.IdentifierReturns this value's associated registry identifier.Returns this value's associated registry identifier path.voidregister(net.minecraft.registry.Registry<io.github.apace100.apoli.power.factory.condition.ConditionFactory<T>> registry) Registers this factory within the provided registry.Methods inherited from class io.github.apace100.apoli.power.factory.condition.ConditionFactory
getSerializableData, getSerializerId, read, read
-
Constructor Details
-
AstralConditionFactory
public AstralConditionFactory(String path, io.github.apace100.calio.data.SerializableData data, BiPredicate<io.github.apace100.calio.data.SerializableData.Instance, T> condition) Creates a new condition factory.- Parameters:
path- The factory's identifier path.data- The factory's serialization data.condition- The factory's test condition.- Since:
- 2.0.0
-
-
Method Details
-
register
public void register(net.minecraft.registry.Registry<io.github.apace100.apoli.power.factory.condition.ConditionFactory<T>> registry) Registers this factory within the provided registry.- Parameters:
registry- The target registry.- Since:
- 2.0.0
-
getRegistryPath
Description copied from interface:RegisteredReturns this value's associated registry identifier path.This is by default used to determine the
Identifierprovided byRegistered.getRegistryId(). For example, returning"my_item"will cause the associated identifier to beastral:my_item.- Specified by:
getRegistryPathin interfaceRegistered- Returns:
- An identifier path.
-
getRegistryId
public net.minecraft.util.Identifier getRegistryId()Description copied from interface:RegisteredReturns this value's associated registry identifier.This is used to uniquely distinguish this instance from other equally-typed instances.
- Specified by:
getRegistryIdin interfaceRegistered- Returns:
- A new identifier.
-