disallow item extraction from crushing wheels with mech arms

This commit is contained in:
IThundxr 2024-07-18 09:17:28 -04:00 committed by GitHub
parent e32239299a
commit b6136dd215
Failed to generate hash of commit

View file

@ -182,7 +182,7 @@ public class AllArmInteractionPointTypes {
@Override
public ArmInteractionPoint createPoint(Level level, BlockPos pos, BlockState state) {
return new TopFaceArmInteractionPoint(this, level, pos, state);
return new CrushingWheelPoint(this, level, pos, state);
}
}
@ -712,4 +712,15 @@ public class AllArmInteractionPointTypes {
}
}
public static class CrushingWheelPoint extends DepositOnlyArmInteractionPoint {
public CrushingWheelPoint(ArmInteractionPointType type, Level level, BlockPos pos, BlockState state) {
super(type, level, pos, state);
}
@Override
protected Vec3 getInteractionPositionVector() {
return Vec3.atLowerCornerOf(pos)
.add(.5f, 1, .5f);
}
}
}