af86a7366a
- Players can now sneak while using exp nuggets to only consume one item at a time - Fixed brass funnels losing their filter when changing from or to a belt/depot funnel - Minecart contraption items can no longer be placed in container items like toolboxes or shulkers (configurable) - Implement #4436, #4419
25 lines
719 B
Java
25 lines
719 B
Java
package com.simibubi.create.content.logistics.block.funnel;
|
|
|
|
import com.simibubi.create.AllBlocks;
|
|
|
|
import net.minecraft.core.BlockPos;
|
|
import net.minecraft.core.Direction;
|
|
import net.minecraft.world.level.BlockGetter;
|
|
import net.minecraft.world.level.block.state.BlockState;
|
|
|
|
public class BrassFunnelBlock extends FunnelBlock {
|
|
|
|
public BrassFunnelBlock(Properties p_i48415_1_) {
|
|
super(p_i48415_1_);
|
|
}
|
|
|
|
@Override
|
|
public BlockState getEquivalentBeltFunnel(BlockGetter world, BlockPos pos, BlockState state) {
|
|
Direction facing = getFacing(state);
|
|
return AllBlocks.BRASS_BELT_FUNNEL.getDefaultState()
|
|
.setValue(BeltFunnelBlock.HORIZONTAL_FACING, facing)
|
|
.setValue(POWERED, state.getValue(POWERED));
|
|
}
|
|
|
|
}
|