mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-02-02 20:29:13 +00:00
Remove getBundledRedstoneConnectivity
Wow, this is old. It looks like it's a legacy of when this method was on TileGeneric (and so returned false by default). As all implementations now return true (turtle tools no longer block redstone), we don't really need this any more.
This commit is contained in:
parent
5b58271b92
commit
13ed422bd5
@ -18,11 +18,6 @@ public class DefaultBundledRedstoneProvider implements BundledRedstoneProvider {
|
||||
|
||||
public static int getDefaultBundledRedstoneOutput(Level world, BlockPos pos, Direction side) {
|
||||
var block = world.getBlockState(pos).getBlock();
|
||||
if (block instanceof IBundledRedstoneBlock generic) {
|
||||
if (generic.getBundledRedstoneConnectivity(world, pos, side)) {
|
||||
return generic.getBundledRedstoneOutput(world, pos, side);
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
return block instanceof IBundledRedstoneBlock bundledBlock ? bundledBlock.getBundledRedstoneOutput(world, pos, side) : -1;
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,5 @@ import net.minecraft.core.Direction;
|
||||
import net.minecraft.world.level.Level;
|
||||
|
||||
public interface IBundledRedstoneBlock {
|
||||
boolean getBundledRedstoneConnectivity(Level world, BlockPos pos, Direction side);
|
||||
|
||||
int getBundledRedstoneOutput(Level world, BlockPos pos, Direction side);
|
||||
}
|
||||
|
@ -92,11 +92,6 @@ public abstract class AbstractComputerBlock<T extends AbstractComputerBlockEntit
|
||||
return getDirectSignal(state, world, pos, incomingSide);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getBundledRedstoneConnectivity(Level world, BlockPos pos, Direction side) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getBundledRedstoneOutput(Level world, BlockPos pos, Direction side) {
|
||||
var entity = world.getBlockEntity(pos);
|
||||
|
Loading…
Reference in New Issue
Block a user