Class Minecraft1_18_2
java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped<M>
mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
mods.thecomputerizer.theimpossiblelibrary.shared.v18.m2.client.Minecraft1_18_2
- All Implemented Interfaces:
mods.thecomputerizer.theimpossiblelibrary.api.core.CoreStateAccessor,mods.thecomputerizer.theimpossiblelibrary.api.wrappers.Wrapped<net.minecraft.client.Minecraft>
public class Minecraft1_18_2
extends mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
-
Field Summary
Fields inherited from class mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI
font, rendererFields inherited from class mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped
wrappedFields inherited from interface mods.thecomputerizer.theimpossiblelibrary.api.core.CoreStateAccessor
BOOLEAN_VALUES, FABRIC, FORGE, FORGE_OR_NEOFORGE, GAME_VERSION, JAVA_17, JAVA_21, JAVA_8, JAVA_MODULES, JAVA_VERSION, JAVA_VERSION_ASM, LEGACY, MOD_LOADER, NAMED_ENV, NEOFORGE, SRG_ENV, V12, V16, V16_OR_EARLIER, V16_OR_LATER, V18, V18_OR_EARLIER, V18_OR_LATER, V19, V19_2_OR_EARLIER, V19_4_OR_LATER, V19_OR_EARLIER, V19_OR_LATER, V20, V20_4_OR_EARLIER, V20_6_OR_LATER, V20_OR_EARLIER, V20_OR_LATER, V21, V21_OR_LATER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid@Nullable Objectintintintstatic mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<?>@Nullable mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<?,?> @Nullable mods.thecomputerizer.theimpossiblelibrary.api.common.blockentity.BlockEntityAPI<?,?> @Nullable mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?,?> mods.thecomputerizer.theimpossiblelibrary.api.client.gui.MinecraftWindowTODO Cache this?@Nullable mods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<?>getWorld()<S> booleanisCurrentScreen(S screen) booleanbooleanbooleanbooleanbooleanisPaused()<T> Supplier<T>scheduleReturnable(Supplier<T> supplier) voidscheduleRunnable(Runnable runnable) Methods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI
getFont, getRenderer, hasPlayer, hasPlayerAndWorld, hasScreen, hasWorld, isLoading, isUnpausedAndFocused, sendMessageToPlayer, sendMessageToPlayer, sendStatusMessageToPlayerMethods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped
equals, getWrapped, getWrappedClass, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface mods.thecomputerizer.theimpossiblelibrary.api.wrappers.Wrapped
getIfNotNull, getIfNotNullOrDefault, getIfNotNullOrDefault, isNull, isNullGetter, notNull, notNullGetter, supplyIfNull, unwrap, wrapIfNotNull, wrapIfNotNullOrDefault, wrapIfNotNullOrDefault
-
Constructor Details
-
Minecraft1_18_2
-
-
Method Details
-
getInstance
public static mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<?> getInstance() -
addResourcePackFolder
- Specified by:
addResourcePackFolderin classmods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
-
getCurrentScreen
- Specified by:
getCurrentScreenin classmods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
-
getDisplayHeight
public int getDisplayHeight()- Specified by:
getDisplayHeightin classmods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
-
getDisplayWidth
public int getDisplayWidth()- Specified by:
getDisplayWidthin classmods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
-
getGUIScale
public int getGUIScale()- Specified by:
getGUIScalein classmods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
-
getPlayer
@Nullable public @Nullable mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<?,?> getPlayer()- Specified by:
getPlayerin classmods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
-
getTargetBlockEntity
@Nullable public @Nullable mods.thecomputerizer.theimpossiblelibrary.api.common.blockentity.BlockEntityAPI<?,?> getTargetBlockEntity()- Specified by:
getTargetBlockEntityin classmods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
-
getTargetEntity
@Nullable public @Nullable mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?,?> getTargetEntity()- Specified by:
getTargetEntityin classmods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
-
getWindow
public mods.thecomputerizer.theimpossiblelibrary.api.client.gui.MinecraftWindow getWindow()TODO Cache this?- Specified by:
getWindowin classmods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
-
getWorld
@Nullable public @Nullable mods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<?> getWorld()- Specified by:
getWorldin classmods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
-
isCurrentScreen
public <S> boolean isCurrentScreen(S screen) - Specified by:
isCurrentScreenin classmods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
-
isCurrentScreenAPI
public boolean isCurrentScreenAPI()- Specified by:
isCurrentScreenAPIin classmods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
-
isDisplayFocused
public boolean isDisplayFocused()- Specified by:
isDisplayFocusedin classmods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
-
isFinishedLoading
public boolean isFinishedLoading()- Specified by:
isFinishedLoadingin classmods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
-
isFullScreen
public boolean isFullScreen()- Specified by:
isFullScreenin classmods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
-
isPaused
public boolean isPaused()- Specified by:
isPausedin classmods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
-
scheduleReturnable
- Specified by:
scheduleReturnablein classmods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
-
scheduleRunnable
- Specified by:
scheduleRunnablein classmods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
-