Class NeoForgeGameplayHelper

java.lang.Object
net.darkhax.bookshelf.neoforge.impl.util.NeoForgeGameplayHelper
All Implemented Interfaces:
IGameplayHelper

public class NeoForgeGameplayHelper extends Object implements IGameplayHelper
  • Field Summary

    Fields inherited from interface net.darkhax.bookshelf.common.api.util.IGameplayHelper

    RNG
  • 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>
    builder(BiFunction<net.minecraft.core.BlockPos,net.minecraft.world.level.block.state.BlockState,T> factory, net.minecraft.world.level.block.Block... validBlocks)
     
    net.minecraft.world.item.ItemStack
    getCraftingRemainder(net.minecraft.world.item.ItemStack input)
     
    net.minecraft.world.item.ItemStack
    inventoryInsert(net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side, net.minecraft.world.item.ItemStack stack)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.darkhax.bookshelf.common.api.util.IGameplayHelper

    addItem, getContainer
  • Constructor Details

    • NeoForgeGameplayHelper

      public NeoForgeGameplayHelper()
  • Method Details

    • getCraftingRemainder

      public net.minecraft.world.item.ItemStack getCraftingRemainder(net.minecraft.world.item.ItemStack input)
      Specified by:
      getCraftingRemainder in interface IGameplayHelper
    • inventoryInsert

      public net.minecraft.world.item.ItemStack inventoryInsert(net.minecraft.server.level.ServerLevel level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side, net.minecraft.world.item.ItemStack stack)
      Specified by:
      inventoryInsert in interface IGameplayHelper
    • builder

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