Class DistanceCondition
java.lang.Object
dev.jaxydog.astral.content.power.AstralCondition<net.minecraft.entity.Entity>
dev.jaxydog.astral.content.power.condition.DistanceCondition
- All Implemented Interfaces:
Registered,Registered.Common
The distance condition.
This exists because the vanilla Origins implementation causes a crash on our server.
- Since:
- 1.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.jaxydog.astral.register.Registered
Registered.All, Registered.Client, Registered.Common, Registered.Generated, Registered.Server -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAstralConditionFactory<net.minecraft.entity.Entity> factory()Returns the condition's associated factory.net.minecraft.registry.Registry<io.github.apace100.apoli.power.factory.condition.ConditionFactory<net.minecraft.entity.Entity>> registry()Returns the condition's registry instance.booleantest(io.github.apace100.calio.data.SerializableData.Instance data, net.minecraft.entity.Entity entity) Tests the condition.Methods inherited from class dev.jaxydog.astral.content.power.AstralCondition
getRegistryPath, registerCommonMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.jaxydog.astral.register.Registered
getRegistryId
-
Constructor Details
-
DistanceCondition
Creates a new distance condition.- Parameters:
path- The condition's identifier path.- Since:
- 1.1.0
-
-
Method Details
-
test
public boolean test(io.github.apace100.calio.data.SerializableData.Instance data, net.minecraft.entity.Entity entity) Description copied from class:AstralConditionTests the condition.- Specified by:
testin classAstralCondition<net.minecraft.entity.Entity>- Parameters:
data- The condition's associated data.entity- The value to test.
-
factory
Description copied from class:AstralConditionReturns the condition's associated factory.- Specified by:
factoryin classAstralCondition<net.minecraft.entity.Entity>- Returns:
- The condition's associated factory.
-
registry
public net.minecraft.registry.Registry<io.github.apace100.apoli.power.factory.condition.ConditionFactory<net.minecraft.entity.Entity>> registry()Description copied from class:AstralConditionReturns the condition's registry instance.- Specified by:
registryin classAstralCondition<net.minecraft.entity.Entity>- Returns:
- The condition's registry instance.
-