Interface Rift


public interface Rift
A rift in the world, from WorldRifts.open(RiftSpec, Vec3). It opens by itself; it closes when told to, or when its time is up.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Begins closing it.
    facing(@Nullable net.minecraft.world.phys.Vec3 toward)
    Holds it facing one way, like a door in a wall, instead of turning to face whoever looks at it: toward is the horizontal direction its face looks out along (from a wall, the way out of it).
    float
    openness(float partialTick)
    How open it is, 0 to 1.
     
    net.minecraft.world.phys.Vec3
    Its middle.
    void
    Removes it at once, with no closing.
     
  • Method Details

    • spec

      RiftSpec spec()
    • position

      net.minecraft.world.phys.Vec3 position()
      Its middle.
    • phase

      Rift.Phase phase()
    • openness

      float openness(float partialTick)
      How open it is, 0 to 1.
    • facing

      Rift facing(@Nullable net.minecraft.world.phys.Vec3 toward)
      Holds it facing one way, like a door in a wall, instead of turning to face whoever looks at it: toward is the horizontal direction its face looks out along (from a wall, the way out of it). null turns it back to the camera, as it starts.
    • close

      void close()
      Begins closing it. Does nothing to a rift already closing or gone.
    • remove

      void remove()
      Removes it at once, with no closing.