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 -
Method Summary
Modifier and TypeMethodDescription<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) booleanburn(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) booleancanBurn(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.BuilderbooleanisModLoaded(String modId)
-
Constructor Details
-
NeoForgePlatformHelper
public NeoForgePlatformHelper()
-
-
Method Details
-
creativeTabBuilder
public net.minecraft.world.item.CreativeModeTab.Builder creativeTabBuilder()- Specified by:
creativeTabBuilderin interfaceIPlatformHelper
-
isModLoaded
- Specified by:
isModLoadedin interfaceIPlatformHelper
-
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:
blockEntityBuilderin interfaceIPlatformHelper
-
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:
burnin interfaceIPlatformHelper
-
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:
canBurnin interfaceIPlatformHelper
-