Interface IPlatform

All Known Implementing Classes:
PlatformFabric

public interface IPlatform
  • Method Details

    • getPlatformName

      String getPlatformName()
    • isModLoaded

      boolean isModLoaded(String modId)
    • isDevelopmentEnvironment

      boolean isDevelopmentEnvironment()
    • getEnvironmentName

      default String getEnvironmentName()
    • registerBlockEntity

      <T extends net.minecraft.world.level.block.entity.BlockEntity> Supplier<net.minecraft.world.level.block.entity.BlockEntityType<T>> registerBlockEntity(String id, Supplier<net.minecraft.world.level.block.entity.BlockEntityType<T>> blockEntityType)
    • registerBlock

      <T extends net.minecraft.world.level.block.Block> Supplier<T> registerBlock(String id, Supplier<T> block)
    • registerEntity

      <T extends net.minecraft.world.entity.Entity> Supplier<net.minecraft.world.entity.EntityType<T>> registerEntity(String id, Supplier<net.minecraft.world.entity.EntityType<T>> entity)
    • registerItem

      <T extends net.minecraft.world.item.Item> Supplier<T> registerItem(String id, Supplier<T> item)
    • registerSound

      <T extends net.minecraft.sounds.SoundEvent> Supplier<T> registerSound(String id, Supplier<T> sound)
    • registerCreativeModeTab

      <T extends net.minecraft.world.item.CreativeModeTab> Supplier<T> registerCreativeModeTab(String id, Supplier<T> tab)
    • makeSpawnEgg

      <E extends net.minecraft.world.entity.Mob> Supplier<net.minecraft.world.item.SpawnEggItem> makeSpawnEgg(net.minecraft.world.item.Item.Properties itemProperties, Supplier<net.minecraft.world.entity.EntityType<E>> entityType)
    • newCreativeTabBuilder

      net.minecraft.world.item.CreativeModeTab.Builder newCreativeTabBuilder()