Interface PlatformAdapter
public interface PlatformAdapter
Aggregated platform port surface implemented by each version-specific adapter module.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyCustomModelData(Object nativeItem, int modelData) voidapplyItemMeta(Object nativeItem, net.kyori.adventure.text.Component displayName, List<net.kyori.adventure.text.Component> lore, String itemModelKey) voidclearBlock(IgnisLocation location) createInventory(Object holder, int size, net.kyori.adventure.text.Component title) createMaterialItem(String materialKey, int amount) booleanisBlockReplaceable(Object nativeBlock) nativeLocation(IgnisLocation location) readCustomModelData(Object nativeItem) voidregisterCommand(String name, Object commandExecutor) voidregisterEventListeners(Object listenerRegistry) resolveSoundKey(String bukkitStyleSoundName) resolveWorld(IgnisLocation location) voidsendMessage(Object nativeSender, net.kyori.adventure.text.Component message) voidsendResourcePack(Object nativePlayer, String url, byte[] hash, boolean force) voidshutdown()unwrapLocation(Object nativeLocation) wrapPlayer(Object nativePlayer)
-
Method Details
-
getPlatformType
PlatformType getPlatformType() -
getMinecraftVersion
String getMinecraftVersion() -
getLogger
Logger getLogger() -
getDataDirectory
Path getDataDirectory() -
getScheduler
IgnisScheduler getScheduler() -
wrapItem
-
wrapPlayer
-
wrapBlock
-
wrapWorld
-
unwrapLocation
-
nativeLocation
-
applyCustomModelData
-
readCustomModelData
-
applyItemMeta
-
sendResourcePack
-
sendMessage
-
isBlockReplaceable
-
resolveSoundKey
-
createInventory
-
registerEventListeners
-
registerCommand
-
resolveWorld
-
createMaterialItem
-
clearBlock
-
shutdown
void shutdown()
-