Interface GeyserModPlatform
public interface GeyserModPlatform
An interface which holds common methods that have different
APIs on their respective mod platforms.
-
Method Summary
Modifier and TypeMethodDescription@NonNull StringGets the config path of the mod platform.@NonNull PathdataFolder(@NonNull String modId) Gets the data folder of the mod platform.@NonNull org.geysermc.geyser.dump.BootstrapDumpInfodumpInfo(@NonNull net.minecraft.server.MinecraftServer server) Gets the dump info of the mod platform.@NonNull org.geysermc.geyser.api.util.PlatformTypeGets thePlatformTypeof the mod platform.@Nullable InputStreamresolveResource(@NonNull String resource) Resolves a resource from the mod jar.booleantestFloodgatePluginPresent(@NonNull GeyserModBootstrap bootstrap) Tests if the Floodgate plugin is present on the mod platform.
-
Method Details
-
platformType
@NonNull org.geysermc.geyser.api.util.PlatformType platformType()Gets thePlatformTypeof the mod platform.- Returns:
- the platform type of the mod platform
-
configPath
@NonNull String configPath()Gets the config path of the mod platform.- Returns:
- the config path of the mod platform
-
dataFolder
Gets the data folder of the mod platform.- Returns:
- the data folder of the mod platform
-
dumpInfo
@NonNull org.geysermc.geyser.dump.BootstrapDumpInfo dumpInfo(@NonNull net.minecraft.server.MinecraftServer server) Gets the dump info of the mod platform.- Parameters:
server- the server to get the dump info from- Returns:
- the dump info of the mod platform
-
testFloodgatePluginPresent
Tests if the Floodgate plugin is present on the mod platform.- Returns:
trueif the Floodgate plugin is present on the mod platform,falseotherwise
-
resolveResource
Resolves a resource from the mod jar.- Parameters:
resource- the name of the resource- Returns:
- the input stream of the resource
-