Class MoonPhaseCondition
java.lang.Object
dev.jaxydog.astral.content.power.AstralCondition<net.minecraft.entity.Entity>
dev.jaxydog.astral.content.power.condition.MoonPhaseCondition
- All Implemented Interfaces:
Registered,Registered.Common
The moon phase condition.
- 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 value) 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
-
MoonPhaseCondition
Creates a new moon phase condition.- Parameters:
path- The condition's identifier path.- Since:
- 2.0.0
-
-
Method Details
-
test
public boolean test(io.github.apace100.calio.data.SerializableData.Instance data, net.minecraft.entity.Entity value) Description copied from class:AstralConditionTests the condition.- Specified by:
testin classAstralCondition<net.minecraft.entity.Entity>- Parameters:
data- The condition's associated data.value- 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.
-