Class BlockEntitySanguinaryEnvironmentalAccumulator.Metadata
java.lang.Object
org.cyclops.evilcraft.core.blockentity.BlockEntityWorking.Metadata
org.cyclops.evilcraft.blockentity.BlockEntitySanguinaryEnvironmentalAccumulator.Metadata
- Enclosing class:
- BlockEntitySanguinaryEnvironmentalAccumulator
public static class BlockEntitySanguinaryEnvironmentalAccumulator.Metadata
extends BlockEntityWorking.Metadata
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanConsume(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world) Check if the given item can be infused.booleancanInsertItem(net.minecraft.world.Container inventory, int slot, net.minecraft.world.item.ItemStack itemStack) Check if the given item can be inserted.protected net.minecraft.world.level.block.BlockgetBlock()intGet the id of the accumulate slot.intGet the id of the result slot.Methods inherited from class org.cyclops.evilcraft.core.blockentity.BlockEntityWorking.Metadata
areUpgradeSlotsValidForTier, canExtractItem, getBasicInventorySize, getRequiredTierForSlot, getTier, getUpgrades, isTierUpgrade, isUpgradeSlot, isUpgradeSlotEnabled
-
Method Details
-
canInsertItem
public boolean canInsertItem(net.minecraft.world.Container inventory, int slot, net.minecraft.world.item.ItemStack itemStack) Description copied from class:BlockEntityWorking.MetadataCheck if the given item can be inserted.- Overrides:
canInsertItemin classBlockEntityWorking.Metadata- Parameters:
inventory- The tile inventory.slot- The slot id.itemStack- The item that is being inserted.- Returns:
- If it can be inserted.
-
canConsume
public boolean canConsume(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world) Description copied from class:BlockEntityWorking.MetadataCheck if the given item can be infused.- Specified by:
canConsumein classBlockEntityWorking.Metadata- Parameters:
itemStack- The item to check.world- The world.- Returns:
- If it can be infused.
-
getBlock
protected net.minecraft.world.level.block.Block getBlock()- Specified by:
getBlockin classBlockEntityWorking.Metadata
-
getConsumeSlot
public int getConsumeSlot()Get the id of the accumulate slot.- Returns:
- id of the accumulate slot.
-
getProduceSlot
public int getProduceSlot()Get the id of the result slot.- Returns:
- id of the result slot.
-