java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped<net.minecraft.client.Minecraft>
mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
mods.thecomputerizer.theimpossiblelibrary.shared.v21.client.Minecraft1_21
All Implemented Interfaces:
mods.thecomputerizer.theimpossiblelibrary.api.core.CoreStateAccessor, mods.thecomputerizer.theimpossiblelibrary.api.wrappers.Wrapped<net.minecraft.client.Minecraft>

public class Minecraft1_21 extends mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
  • Field Summary

    Fields inherited from class mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI

    font, renderer

    Fields inherited from class mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped

    wrapped

    Fields 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    @Nullable Object
     
    int
     
    int
     
    int
     
    static 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.MinecraftWindow
    TODO Cache this?
    @Nullable mods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<?>
     
    <S> boolean
    isCurrentScreen(S screen)
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    boolean
     
    <T> Supplier<T>
     
    void
     

    Methods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI

    getFont, getRenderer, hasPlayer, hasPlayerAndWorld, hasScreen, hasWorld, isLoading, isUnpausedAndFocused, sendMessageToPlayer, sendMessageToPlayer, sendStatusMessageToPlayer

    Methods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped

    equals, getWrapped, getWrappedClass, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface mods.thecomputerizer.theimpossiblelibrary.api.wrappers.Wrapped

    getIfNotNull, getIfNotNullOrDefault, getIfNotNullOrDefault, isNull, isNullGetter, notNull, notNullGetter, supplyIfNull, unwrap, wrapIfNotNull, wrapIfNotNullOrDefault, wrapIfNotNullOrDefault
  • Constructor Details

    • Minecraft1_21

      public Minecraft1_21(Object mc)
  • Method Details

    • getInstance

      public static mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<?> getInstance()
    • addResourcePackFolder

      public void addResourcePackFolder(File dir)
      Specified by:
      addResourcePackFolder in class mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
    • getCurrentScreen

      @Nullable public @Nullable Object getCurrentScreen()
      Specified by:
      getCurrentScreen in class mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
    • getDisplayHeight

      public int getDisplayHeight()
      Specified by:
      getDisplayHeight in class mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
    • getDisplayWidth

      public int getDisplayWidth()
      Specified by:
      getDisplayWidth in class mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
    • getGUIScale

      public int getGUIScale()
      Specified by:
      getGUIScale in class mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
    • getPlayer

      @Nullable public @Nullable mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<?,?> getPlayer()
      Specified by:
      getPlayer in class mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
    • getTargetBlockEntity

      @Nullable public @Nullable mods.thecomputerizer.theimpossiblelibrary.api.common.blockentity.BlockEntityAPI<?,?> getTargetBlockEntity()
      Specified by:
      getTargetBlockEntity in class mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
    • getTargetEntity

      @Nullable public @Nullable mods.thecomputerizer.theimpossiblelibrary.api.common.entity.EntityAPI<?,?> getTargetEntity()
      Specified by:
      getTargetEntity in class mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
    • getWindow

      public mods.thecomputerizer.theimpossiblelibrary.api.client.gui.MinecraftWindow getWindow()
      TODO Cache this?
      Specified by:
      getWindow in class mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
    • getWorld

      @Nullable public @Nullable mods.thecomputerizer.theimpossiblelibrary.api.world.WorldAPI<?> getWorld()
      Specified by:
      getWorld in class mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
    • isCurrentScreen

      public <S> boolean isCurrentScreen(S screen)
      Specified by:
      isCurrentScreen in class mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
    • isCurrentScreenAPI

      public boolean isCurrentScreenAPI()
      Specified by:
      isCurrentScreenAPI in class mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
    • isDisplayFocused

      public boolean isDisplayFocused()
      Specified by:
      isDisplayFocused in class mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
    • isFinishedLoading

      public boolean isFinishedLoading()
      Specified by:
      isFinishedLoading in class mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
    • isFullScreen

      public boolean isFullScreen()
      Specified by:
      isFullScreen in class mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
    • isPaused

      public boolean isPaused()
      Specified by:
      isPaused in class mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
    • scheduleReturnable

      public <T> Supplier<T> scheduleReturnable(Supplier<T> supplier)
      Specified by:
      scheduleReturnable in class mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>
    • scheduleRunnable

      public void scheduleRunnable(Runnable runnable)
      Specified by:
      scheduleRunnable in class mods.thecomputerizer.theimpossiblelibrary.api.client.MinecraftAPI<net.minecraft.client.Minecraft>