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 -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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:towardis the horizontal direction its face looks out along (from a wall, the way out of it).floatopenness(float partialTick) How open it is, 0 to 1.phase()net.minecraft.world.phys.Vec3position()Its middle.voidremove()Removes it at once, with no closing.spec()
-
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
Holds it facing one way, like a door in a wall, instead of turning to face whoever looks at it:towardis the horizontal direction its face looks out along (from a wall, the way out of it).nullturns 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.
-