Package com.hbm_m.api.block
Interface ICrucibleAcceptor
- All Known Implementing Classes:
MachineFoundryBasinBlockEntity,MachineFoundryChannelBlockEntity,MachineFoundryOutletBlockEntity
public interface ICrucibleAcceptor
Port of the 1.7.10 api.hbm.block.ICrucibleAcceptor.
Implemented by block entities that can receive molten material, either by
sideways flowing (channels, outlets) or by being poured into from above
(basins, channels, crucibles).
flow/pour return the leftover stack, or null if everything was accepted.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanAcceptPartialFlow(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side, MaterialStack stack) Whether material may flow in sideways from the given side.booleancanAcceptPartialPour(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side, MaterialStack stack) Whether material may be poured in from above (side is usually UP).flow(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side, MaterialStack stack) Sideways flow.pour(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side, MaterialStack stack) Pour from above.
-
Method Details
-
canAcceptPartialFlow
boolean canAcceptPartialFlow(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side, MaterialStack stack) Whether material may flow in sideways from the given side. -
flow
@Nullable MaterialStack flow(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side, MaterialStack stack) Sideways flow. Returns the leftover, or null if fully accepted. -
canAcceptPartialPour
boolean canAcceptPartialPour(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side, MaterialStack stack) Whether material may be poured in from above (side is usually UP). -
pour
@Nullable MaterialStack pour(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side, MaterialStack stack) Pour from above. Returns the leftover, or null if fully accepted.
-