Class CircleExecutionState

java.lang.Object
at.petrak.hexcasting.api.casting.circles.CircleExecutionState

public class CircleExecutionState extends Object
See BlockEntityAbstractImpetus, this is what's stored in it
  • Field Details

    • TAG_IMPETUS_POS

      public static final String TAG_IMPETUS_POS
      See Also:
    • TAG_IMPETUS_DIR

      public static final String TAG_IMPETUS_DIR
      See Also:
    • TAG_KNOWN_POSITIONS

      public static final String TAG_KNOWN_POSITIONS
      See Also:
    • TAG_REACHED_POSITIONS

      public static final String TAG_REACHED_POSITIONS
      See Also:
    • TAG_CURRENT_POS

      public static final String TAG_CURRENT_POS
      See Also:
    • TAG_ENTERED_FROM

      public static final String TAG_ENTERED_FROM
      See Also:
    • TAG_IMAGE

      public static final String TAG_IMAGE
      See Also:
    • TAG_CASTER

      public static final String TAG_CASTER
      See Also:
    • TAG_PIGMENT

      public static final String TAG_PIGMENT
      See Also:
    • impetusPos

      public final net.minecraft.core.BlockPos impetusPos
    • impetusDir

      public final net.minecraft.core.Direction impetusDir
    • knownPositions

      public final Set<net.minecraft.core.BlockPos> knownPositions
    • reachedPositions

      public final List<net.minecraft.core.BlockPos> 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

      @Nullable public @Nullable UUID caster
    • casterPigment

      @Nullable public @Nullable FrozenPigment 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

      public boolean tick(BlockEntityAbstractImpetus impetus)
      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

      public void endExecution(BlockEntityAbstractImpetus impetus)