Class CircleExecutionState
java.lang.Object
at.petrak.hexcasting.api.casting.circles.CircleExecutionState
See
BlockEntityAbstractImpetus, this is what's stored in it-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal net.minecraft.world.phys.AABB@Nullable UUID@Nullable FrozenPigmentat.petrak.hexcasting.api.casting.eval.vm.CastingImagenet.minecraft.core.BlockPosnet.minecraft.core.Directionfinal net.minecraft.core.Directionfinal net.minecraft.core.BlockPosfinal Set<net.minecraft.core.BlockPos>final List<net.minecraft.core.BlockPos>static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCircleExecutionState(net.minecraft.core.BlockPos impetusPos, net.minecraft.core.Direction impetusDir, Set<net.minecraft.core.BlockPos> knownPositions, List<net.minecraft.core.BlockPos> reachedPositions, net.minecraft.core.BlockPos currentPos, net.minecraft.core.Direction enteredFrom, at.petrak.hexcasting.api.casting.eval.vm.CastingImage currentImage, @Nullable UUID caster, @Nullable FrozenPigment casterPigment) -
Method Summary
Modifier and TypeMethodDescriptionstatic Result<CircleExecutionState,@Nullable net.minecraft.core.BlockPos> createNew(BlockEntityAbstractImpetus impetus, @Nullable net.minecraft.server.level.ServerPlayer caster) voidendExecution(BlockEntityAbstractImpetus impetus) @Nullable net.minecraft.server.level.ServerPlayergetCaster(net.minecraft.server.level.ServerLevel world) protected intHow many ticks should pass between activations, given the number of blocks encountered so far.static CircleExecutionStateload(net.minecraft.nbt.CompoundTag nbt, net.minecraft.server.level.ServerLevel world) net.minecraft.nbt.CompoundTagsave()booleantick(BlockEntityAbstractImpetus impetus) Update this, also mutates the impetus.
-
Field Details
-
TAG_IMPETUS_POS
- See Also:
-
TAG_IMPETUS_DIR
- See Also:
-
TAG_KNOWN_POSITIONS
- See Also:
-
TAG_REACHED_POSITIONS
- See Also:
-
TAG_CURRENT_POS
- See Also:
-
TAG_ENTERED_FROM
- See Also:
-
TAG_IMAGE
- See Also:
-
TAG_CASTER
- See Also:
-
TAG_PIGMENT
- See Also:
-
impetusPos
public final net.minecraft.core.BlockPos impetusPos -
impetusDir
public final net.minecraft.core.Direction impetusDir -
knownPositions
-
reachedPositions
-
currentPos
public net.minecraft.core.BlockPos currentPos -
enteredFrom
public net.minecraft.core.Direction enteredFrom -
currentImage
public at.petrak.hexcasting.api.casting.eval.vm.CastingImage currentImage -
caster
-
casterPigment
-
bounds
public final net.minecraft.world.phys.AABB bounds
-
-
Constructor Details
-
CircleExecutionState
protected CircleExecutionState(net.minecraft.core.BlockPos impetusPos, net.minecraft.core.Direction impetusDir, Set<net.minecraft.core.BlockPos> knownPositions, List<net.minecraft.core.BlockPos> reachedPositions, net.minecraft.core.BlockPos currentPos, net.minecraft.core.Direction enteredFrom, at.petrak.hexcasting.api.casting.eval.vm.CastingImage currentImage, @Nullable @Nullable UUID caster, @Nullable @Nullable FrozenPigment casterPigment)
-
-
Method Details
-
getCaster
@Nullable public @Nullable net.minecraft.server.level.ServerPlayer getCaster(net.minecraft.server.level.ServerLevel world) -
createNew
public static Result<CircleExecutionState,@Nullable net.minecraft.core.BlockPos> createNew(BlockEntityAbstractImpetus impetus, @Nullable @Nullable net.minecraft.server.level.ServerPlayer caster) -
save
public net.minecraft.nbt.CompoundTag save() -
load
public static CircleExecutionState load(net.minecraft.nbt.CompoundTag nbt, net.minecraft.server.level.ServerLevel world) -
tick
Update this, also mutates the impetus.Returns whether to continue.
-
getTickSpeed
protected int getTickSpeed()How many ticks should pass between activations, given the number of blocks encountered so far. -
endExecution
-