Class PlatformHelper

java.lang.Object
dev.latvian.mods.klib.platform.PlatformHelper
Direct Known Subclasses:
NeoPlatformHelper

public class PlatformHelper extends Object
  • Field Details

  • Constructor Details

    • PlatformHelper

      public PlatformHelper()
  • Method Details

    • getPlatform

      public String getPlatform()
    • getSide

      public Side getSide()
    • isDevEnv

      public boolean isDevEnv()
    • getGameDirectory

      public Path getGameDirectory()
    • getConfigDirectory

      public Path getConfigDirectory()
    • getModsDirectory

      public Path getModsDirectory()
    • getLocalDirectory

      public Path getLocalDirectory()
    • createBuffer

      public net.minecraft.network.RegistryFriendlyByteBuf createBuffer(io.netty.buffer.ByteBuf source, net.minecraft.core.RegistryAccess access)
    • createBuffer

      public net.minecraft.network.RegistryFriendlyByteBuf createBuffer(io.netty.buffer.ByteBuf source, net.minecraft.network.RegistryFriendlyByteBuf parent)
    • createDecorator

      public Function<io.netty.buffer.ByteBuf, net.minecraft.network.RegistryFriendlyByteBuf> createDecorator(net.minecraft.core.RegistryAccess access)
    • findFile

      @Nullable public @Nullable Path findFile(String... path)
    • findFile

      @Nullable public @Nullable Path findFile(net.minecraft.server.packs.PackType type, net.minecraft.resources.Identifier id)
    • getModList

      public List<PlatformModInfo> getModList()
    • isModLoaded

      public boolean isModLoaded(String modId)