Class UnobstructedBlockInRadiusCondition
java.lang.Object
dev.jaxydog.astral.content.power.AstralCondition<net.minecraft.entity.Entity>
dev.jaxydog.astral.content.power.condition.UnobstructedBlockInRadiusCondition
- All Implemented Interfaces:
Registered,Registered.Common
public class UnobstructedBlockInRadiusCondition
extends AstralCondition<net.minecraft.entity.Entity>
An analog of
origins:block_in_radius that ensures that the detected block is not obstructed from the player's
current position.- Since:
- 1.7.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
ConstructorsConstructorDescriptionCreates a new unobstructed block in radius condition. -
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
-
UnobstructedBlockInRadiusCondition
Creates a new unobstructed block in radius condition.- Parameters:
path- The condition's identifier path.- Since:
- 1.7.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.
-