java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.api.wrappers.AbstractWrapped<S>
mods.thecomputerizer.theimpossiblelibrary.api.server.MinecraftServerAPI<net.minecraft.server.MinecraftServer>
mods.thecomputerizer.theimpossiblelibrary.shared.v18.m2.server.MinecraftServer1_18_2
All Implemented Interfaces:
mods.thecomputerizer.theimpossiblelibrary.api.core.CoreStateAccessor, mods.thecomputerizer.theimpossiblelibrary.api.wrappers.Wrapped<net.minecraft.server.MinecraftServer>

public abstract class MinecraftServer1_18_2 extends mods.thecomputerizer.theimpossiblelibrary.api.server.MinecraftServerAPI<net.minecraft.server.MinecraftServer>
  • Field Summary

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

    wrapped

    Fields inherited from interface mods.thecomputerizer.theimpossiblelibrary.api.core.CoreStateAccessor

    FABRIC, FORGE, FORGE_OR_NEOFORGE, GAME_VERSION, JAVA_17, JAVA_21, JAVA_8, JAVA_MODULES, JAVA_VERSION, 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_LATER, V21, V21_OR_LATER
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected @Nullable Field
    getField(Object parent, String name, Class<?> descType)
     
    protected @Nullable Path
     
    protected abstract @Nullable Field
     
    protected @Nullable Object
     
    protected abstract @Nullable Field
     
    @Nullable mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<?,?>
     
    List<mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<?,?>>
     
    @Nullable File
     
    abstract net.minecraft.server.MinecraftServer
     
    void
    registerCommand(mods.thecomputerizer.theimpossiblelibrary.api.server.CommandAPI cmd)
     

    Methods inherited from class mods.thecomputerizer.theimpossiblelibrary.api.server.MinecraftServerAPI

    getWrapped

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

    equals, 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

    unwrap
  • Constructor Details

    • MinecraftServer1_18_2

      public MinecraftServer1_18_2()
  • Method Details

    • registerCommand

      public void registerCommand(mods.thecomputerizer.theimpossiblelibrary.api.server.CommandAPI cmd)
      Specified by:
      registerCommand in class mods.thecomputerizer.theimpossiblelibrary.api.server.MinecraftServerAPI<net.minecraft.server.MinecraftServer>
    • executeCommandLiteral

      public void executeCommandLiteral(String command)
      Specified by:
      executeCommandLiteral in class mods.thecomputerizer.theimpossiblelibrary.api.server.MinecraftServerAPI<net.minecraft.server.MinecraftServer>
    • getField

      @Nullable protected @Nullable Field getField(Object parent, String name, Class<?> descType)
    • getPlayerByUUID

      @Nullable public @Nullable mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<?,?> getPlayerByUUID(String uuid)
      Specified by:
      getPlayerByUUID in class mods.thecomputerizer.theimpossiblelibrary.api.server.MinecraftServerAPI<net.minecraft.server.MinecraftServer>
    • getPlayers

      public List<mods.thecomputerizer.theimpossiblelibrary.api.common.entity.PlayerAPI<?,?>> getPlayers()
      Specified by:
      getPlayers in class mods.thecomputerizer.theimpossiblelibrary.api.server.MinecraftServerAPI<net.minecraft.server.MinecraftServer>
    • getSaveDir

      @Nullable public @Nullable File getSaveDir()
      Specified by:
      getSaveDir in class mods.thecomputerizer.theimpossiblelibrary.api.server.MinecraftServerAPI<net.minecraft.server.MinecraftServer>
    • getLevelPath

      @Nullable protected @Nullable Path getLevelPath(Object save)
    • getLevelPathField

      @Nullable protected abstract @Nullable Field getLevelPathField(Object save)
    • getLevelSave

      @Nullable protected @Nullable Object getLevelSave(Object server)
    • getLevelSaveField

      @Nullable protected abstract @Nullable Field getLevelSaveField(Object server)
    • getServer

      public abstract net.minecraft.server.MinecraftServer getServer()
      Specified by:
      getServer in class mods.thecomputerizer.theimpossiblelibrary.api.server.MinecraftServerAPI<net.minecraft.server.MinecraftServer>