Class NeoForgePlatformHelper

java.lang.Object
com.blamejared.ironsmelters.platform.NeoForgePlatformHelper
All Implemented Interfaces:
IPlatformHelper

@AutoService(IPlatformHelper.class) public class NeoForgePlatformHelper extends Object implements IPlatformHelper
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends net.minecraft.world.level.block.entity.BlockEntity>
    net.minecraft.world.level.block.entity.BlockEntityType.Builder<T>
    blockEntityBuilder(BiFunction<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState,T> factory, net.minecraft.world.level.block.Block... validBlocks)
     
    boolean
    burn(net.minecraft.core.RegistryAccess registryAccess, net.minecraft.world.item.crafting.RecipeHolder<?> recipe, net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> inventory, int maxStackSize, net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity entity)
     
    boolean
    canBurn(net.minecraft.core.RegistryAccess registryAccess, @Nullable net.minecraft.world.item.crafting.RecipeHolder<?> recipe, net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> inventory, int maxStackSize, net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity entity)
     
    net.minecraft.world.item.CreativeModeTab.Builder
     
    boolean
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NeoForgePlatformHelper

      public NeoForgePlatformHelper()
  • Method Details

    • creativeTabBuilder

      public net.minecraft.world.item.CreativeModeTab.Builder creativeTabBuilder()
      Specified by:
      creativeTabBuilder in interface IPlatformHelper
    • isModLoaded

      public boolean isModLoaded(String modId)
      Specified by:
      isModLoaded in interface IPlatformHelper
    • blockEntityBuilder

      public <T extends net.minecraft.world.level.block.entity.BlockEntity> net.minecraft.world.level.block.entity.BlockEntityType.Builder<T> blockEntityBuilder(BiFunction<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState,T> factory, net.minecraft.world.level.block.Block... validBlocks)
      Specified by:
      blockEntityBuilder in interface IPlatformHelper
    • burn

      public boolean burn(net.minecraft.core.RegistryAccess registryAccess, net.minecraft.world.item.crafting.RecipeHolder<?> recipe, net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> inventory, int maxStackSize, net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity entity)
      Specified by:
      burn in interface IPlatformHelper
    • canBurn

      public boolean canBurn(net.minecraft.core.RegistryAccess registryAccess, @Nullable @Nullable net.minecraft.world.item.crafting.RecipeHolder<?> recipe, net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> inventory, int maxStackSize, net.minecraft.world.level.block.entity.AbstractFurnaceBlockEntity entity)
      Specified by:
      canBurn in interface IPlatformHelper