Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package lx01.projects.techmodbase;
- public abstract class RotationSourceBlock extends Block {
- public RotationSourceBlock (BlockBehaviour$Properties settings) {
- super (settings);
- }
- public void neighborChanged (BlockState state, Level, BlockPos pos, Block sourceBlock, BlockPos sourcePos, boolean notify) {
- if (sourceBlock != instanceof RotationTransmissionBlock)
- BlockState notifier = level.getBlockState(sourcePos);
- if (this.doesOutput(Util.directionTo(pos, sourcePos))) level.setBlock(sourcePos, notifier, null);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement