Files
ForgeRelocation/src/main/scala/mrtjp/relocation/api/IMovementDescriptor.java
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
777 B
Java
Raw Normal View History

2015-06-28 17:40:45 -04:00
/*
* Copyright (c) 2015. Created by MrTJP. All rights reserved.
*/
package mrtjp.relocation.api;
/**
* This is the interface of the object that is given to an {@link IMovementCallback} so it may access movement
* information whenever it needs to during the movement.
*
* Results of all methods is only valid during movement, undefined otherwise. Use isMoving() to check before using any
* values from this.
*/
2022-12-15 00:44:24 +01:00
public interface IMovementDescriptor {
2015-06-28 17:40:45 -04:00
/**
* @return True if the structure is moving.
*/
boolean isMoving();
/**
* @return The progress of the movement scaled between 0 and 1.
*/
double getProgress();
/**
* @return The size of the moving structure, zero if it is no longer moving.
*/
int getSize();
2022-12-15 00:44:24 +01:00
}