Interface VeilPlatform


public interface VeilPlatform
Manages common platform-specific features.
  • Method Details

    • getPlatformType

      VeilPlatform.PlatformType getPlatformType()
      Returns:
      The detected platform operand
    • isModLoaded

      boolean isModLoaded(String modId)
      Checks if a mod with the given id is loaded.
      Parameters:
      modId - The mod to check if it is loaded.
      Returns:
      True if the mod is loaded, false otherwise.
    • isDevelopmentEnvironment

      boolean isDevelopmentEnvironment()
      Check if the game is currently in a development environment.
      Returns:
      True if in a development environment, false otherwise.
    • canAttachRenderdoc

      boolean canAttachRenderdoc()
      Returns:
      Whether it is possible to attach renderdoc
    • hasErrors

      boolean hasErrors()
      Returns:
      Whether the mod loader has errors and cannot load
    • hasChannel

      boolean hasChannel(net.minecraft.network.PacketListener listener, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<?> type)
      Checks if the specified packet listener has the requested payload.
      Parameters:
      listener - The listener to check
      type - The payload to test for
      Returns:
      Whether the packet can be sent on that channel
      Since:
      4.0.0