Class NeoForgeGameplayHelper
java.lang.Object
net.darkhax.bookshelf.neoforge.impl.util.NeoForgeGameplayHelper
- All Implemented Interfaces:
IGameplayHelper
-
Field Summary
Fields inherited from interface net.darkhax.bookshelf.common.api.util.IGameplayHelper
RNG -
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> 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.ItemStackgetCraftingRemainder(net.minecraft.world.item.ItemStack input) net.minecraft.world.item.ItemStackinventoryInsert(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, waitMethods 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:
getCraftingRemainderin interfaceIGameplayHelper
-
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:
inventoryInsertin interfaceIGameplayHelper
-
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:
builderin interfaceIGameplayHelper
-