public abstract class MinecraftAPI<M> extends AbstractWrapped<M>
| Modifier and Type | Field and Description |
|---|---|
protected FontAPI<?> |
font |
protected RenderAPI |
renderer |
wrapped| Modifier | Constructor and Description |
|---|---|
protected |
MinecraftAPI(M mc,
FontAPI<?> font,
RenderAPI renderer) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addResourcePackFolder(java.io.File dir) |
abstract java.lang.Object |
getCurrentScreen() |
abstract int |
getDisplayHeight() |
abstract int |
getDisplayWidth() |
abstract int |
getGUIScale() |
abstract PlayerAPI<?,?> |
getPlayer() |
abstract BlockEntityAPI<?,?> |
getTargetBlockEntity() |
abstract EntityAPI<?,?> |
getTargetEntity() |
abstract MinecraftWindow |
getWindow() |
abstract WorldAPI<?> |
getWorld() |
boolean |
hasPlayer() |
boolean |
hasPlayerAndWorld() |
boolean |
hasScreen() |
boolean |
hasWorld() |
abstract <S> boolean |
isCurrentScreen(S screen) |
abstract boolean |
isCurrentScreenAPI() |
abstract boolean |
isDisplayFocused() |
abstract boolean |
isFinishedLoading() |
abstract boolean |
isFullScreen() |
boolean |
isLoading() |
abstract boolean |
isPaused() |
boolean |
isUnpausedAndFocused() |
abstract <T> java.util.function.Supplier<T> |
scheduleReturnable(java.util.function.Supplier<T> supplier)
Note that the returned Supplier could resolve to null if it fails to execute
|
abstract void |
scheduleRunnable(java.lang.Runnable runnable) |
void |
sendMessageToPlayer(TextAPI<?> text) |
void |
sendMessageToPlayer(TextAPI<?> text,
java.util.UUID uuid) |
void |
sendStatusMessageToPlayer(TextAPI<?> text,
boolean actionBar) |
equals, getWrapped, getWrappedClass, toStringpublic abstract void addResourcePackFolder(java.io.File dir)
@Nullable public abstract java.lang.Object getCurrentScreen()
public abstract int getDisplayHeight()
public abstract int getDisplayWidth()
public abstract int getGUIScale()
@Nullable public abstract PlayerAPI<?,?> getPlayer()
@Nullable public abstract BlockEntityAPI<?,?> getTargetBlockEntity()
@Nullable public abstract EntityAPI<?,?> getTargetEntity()
public abstract MinecraftWindow getWindow()
@Nullable public abstract WorldAPI<?> getWorld()
public boolean hasPlayer()
public boolean hasPlayerAndWorld()
public boolean hasScreen()
public boolean hasWorld()
public abstract <S> boolean isCurrentScreen(S screen)
public abstract boolean isCurrentScreenAPI()
public abstract boolean isDisplayFocused()
public abstract boolean isFinishedLoading()
public abstract boolean isFullScreen()
public boolean isLoading()
public abstract boolean isPaused()
public boolean isUnpausedAndFocused()
public abstract <T> java.util.function.Supplier<T> scheduleReturnable(java.util.function.Supplier<T> supplier)
public abstract void scheduleRunnable(java.lang.Runnable runnable)
public void sendMessageToPlayer(TextAPI<?> text)
public void sendMessageToPlayer(TextAPI<?> text, @Nullable java.util.UUID uuid)
public void sendStatusMessageToPlayer(TextAPI<?> text, boolean actionBar)